UNPKG

@appsemble/utils

Version:

Utility functions used in Appsemble internally

50 lines 1.67 kB
import { predefinedOrganizationRoles } from '@appsemble/types'; export const pathItems = { parameters: [ { $ref: '#/components/parameters/organizationId' }, { name: 'organizationMemberId', in: 'path', description: 'The ID of the member', required: true, schema: { $ref: '#/components/schemas/User/properties/id' }, }, ], put: { tags: ['main', 'organization', 'member'], description: 'Set the role of the member within the organization.', operationId: 'updateOrganizationMemberRole', requestBody: { description: 'The role to set.', required: true, content: { 'application/json': { schema: { type: 'object', required: ['role'], properties: { role: { type: 'string', enum: predefinedOrganizationRoles, }, }, }, }, }, }, responses: { 200: { description: 'The member’s role has been successfully updated.', content: { 'application/json': { schema: { $ref: '#/components/schemas/OrganizationMember', }, }, }, }, }, security: [{ studio: [] }], }, }; //# sourceMappingURL=role.js.map