On this page

أنواع المستشارين — the categories consultants are filed under. Reads follow the consultants section: PRIVATE community → members only (404 otherwise), PUBLIC → anyone. Writes need consultants:manage and current membership. A communityId in the body must equal the path's.

6 endpoints.

MethodPathSummary
GET/api/communities/{communityId}/consultants/typesList consultant types
POST/api/communities/{communityId}/consultants/typesCreate a type (consultants:manage)
DELETE/api/communities/{communityId}/consultants/types/{id}Delete a type (consultants:manage)
GET/api/communities/{communityId}/consultants/types/{id}One type
PUT/api/communities/{communityId}/consultants/types/{id}Edit a type (consultants:manage)
GET/api/communities/{communityId}/consultants/types/consultant/{consultantId}The types of one consultant

Auth: optional — a token changes what you can see (see "Who may read what").

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring (uuid)—
qquerynostring—
pagequerynointeger—
pageSizequerynointeger—

Responses

StatusDescriptionBody
200{ success, data: ConsultantType[], ...page }—
404Private community and the caller is not a member—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring (uuid)—

Request body (required) — application/json

FieldTypeRequiredDescription
namestringyes—
descriptionstringno—

Responses

StatusDescriptionBody
201data is the ConsultantType—
400name missing—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring (uuid)—
idpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Deleted—

Auth: optional — a token changes what you can see (see "Who may read what").

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring (uuid)—
idpathyesstring (uuid)—

Responses

StatusDescriptionBody
200data is the ConsultantType—
404Not found—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring (uuid)—
idpathyesstring (uuid)—

Request body — application/json

FieldTypeRequiredDescription
namestringno—
descriptionstringno—

Responses

StatusDescriptionBody
200data is the ConsultantType—

Auth: optional — a token changes what you can see (see "Who may read what").

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring (uuid)—
consultantIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200data is ConsultantType[]—