wip
This commit is contained in:
		@@ -229,4 +229,37 @@ export const endpoints = {
 | 
			
		||||
			},
 | 
			
		||||
		}],
 | 
			
		||||
	},
 | 
			
		||||
	"admin/ad/update": {
 | 
			
		||||
		tags: ['admin'],
 | 
			
		||||
 | 
			
		||||
		requireCredential: true,
 | 
			
		||||
		requireModerator: true,
 | 
			
		||||
 | 
			
		||||
		errors: {
 | 
			
		||||
			noSuchAd: {
 | 
			
		||||
				message: 'No such ad.',
 | 
			
		||||
				code: 'NO_SUCH_AD',
 | 
			
		||||
				id: 'b7aa1727-1354-47bc-a182-3a9c3973d300',
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		defines: [{
 | 
			
		||||
			req: {
 | 
			
		||||
				type: 'object',
 | 
			
		||||
				properties: {
 | 
			
		||||
					id: { type: 'string', format: 'misskey:id' },
 | 
			
		||||
					memo: { type: 'string' },
 | 
			
		||||
					url: { type: 'string', minLength: 1 },
 | 
			
		||||
					imageUrl: { type: 'string', minLength: 1 },
 | 
			
		||||
					place: { type: 'string' },
 | 
			
		||||
					priority: { type: 'string' },
 | 
			
		||||
					ratio: { type: 'integer' },
 | 
			
		||||
					expiresAt: { type: 'integer' },
 | 
			
		||||
					startsAt: { type: 'integer' },
 | 
			
		||||
				},
 | 
			
		||||
				required: ['id', 'memo', 'url', 'imageUrl', 'place', 'priority', 'ratio', 'expiresAt', 'startsAt'],
 | 
			
		||||
			},
 | 
			
		||||
			res: undefined,
 | 
			
		||||
		}],
 | 
			
		||||
	},
 | 
			
		||||
} as const satisfies { [x: string]: IEndpointMeta; };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user