jointrashposs/content/ja/.docs-legacy/api/endpoints/admin/relays/add.json5
2023-07-11 23:48:17 +09:00

61 lines
876 B
Plaintext

{
summary: '',
description: '',
tags: [
'admin',
],
requireCredential: true,
req: {
type: 'object',
properties: {
inbox: {
type: 'string',
},
},
required: [
'inbox',
],
},
res: {
type: 'object',
optional: false,
nullable: false,
properties: {
id: {
type: 'string',
optional: false,
nullable: false,
format: 'id',
},
inbox: {
type: 'string',
optional: false,
nullable: false,
format: 'url',
},
status: {
type: 'string',
optional: false,
nullable: false,
default: 'requesting',
enum: [
'requesting',
'accepted',
'rejected',
],
},
},
required: [
'id',
'inbox',
'status',
],
},
errors: {
'fb8c92d3-d4e5-44e7-b3d4-800d5cef8b2c': {
id: 'fb8c92d3-d4e5-44e7-b3d4-800d5cef8b2c',
code: 'INVALID_URL',
description: '',
},
},
}