Skip to content

user

POST file

POST /user/{id}/file

Body Parameters

avatar: string

Params

NameLocationTypeRequiredDescription
idpathstringyesnone
Content-Typeheaderstringyesnone
bodybodyobjectnonone
» avatarbodystring(binary)nonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKSuccessInline

Responses Data Schema

GET show

GET /user/{id}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone

Response Examples

200 Response

{
"avatar": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"email": "string",
"emailVisibility": true,
"id": "string",
"token": "string",
"updated": "2019-08-24T14:15:22Z",
"username": "string",
"verified": true
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» avatarstringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» emailstringtruenonenone
» emailVisibilitybooleantruenonenone
» idstringtruenonenone
» tokenstringtruenonenone
» updatedstring(date-time)truenonenone
» usernamestringtruenonenone
» verifiedbooleantruenonenone

HTTP Status Code 404

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
» namestringtruenonenone

POST update

POST /user/{id}

Body Parameters

{}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone
Content-Typeheaderstringyesnone
bodybodyobjectnonone

Response Examples

200 Response

{
"avatar": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"email": "string",
"emailVisibility": true,
"id": "string",
"token": "string",
"updated": "2019-08-24T14:15:22Z",
"username": "string",
"verified": true
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» avatarstringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» emailstringtruenonenone
» emailVisibilitybooleantruenonenone
» idstringtruenonenone
» tokenstringtruenonenone
» updatedstring(date-time)truenonenone
» usernamestringtruenonenone
» verifiedbooleantruenonenone

HTTP Status Code 404

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
» namestringtruenonenone

DELETE delete

DELETE /user/{id}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone

Response Examples

200 Response

{
"acknowledged": true
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» acknowledgedbooleantruenonenone

HTTP Status Code 404

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
» namestringtruenonenone

PUT create

PUT /user

Body Parameters

{
"username": "string",
"password": "string",
"passwordConfirm": "string",
"email": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodyobjectnonone
» usernamebodystringyesnone
» passwordbodystringyesnone
» passwordConfirmbodystringyesnone
» emailbodystringyesnone

Response Examples

200 Response

{
"avatar": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"emailVisibility": true,
"id": "string",
"token": "string",
"updated": "2019-08-24T14:15:22Z",
"username": "string",
"verified": true
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
400Bad RequestBad RequestInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» avatarstringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» emailVisibilitybooleantruenonenone
» idstringtruenonenone
» tokenstringtruenonenone
» updatedstring(date-time)truenonenone
» usernamestringtruenonenone
» verifiedbooleantruenonenone

HTTP Status Code 400

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
»»» passwordConfirmobjecttruenonenone
»»»» codestringtruenonenone
»»»» messagestringtruenonenone
»»» usernameobjecttruenonenone
»»»» codestringtruenonenone
»»»» messagestringtruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
»»»» passwordConfirmobjecttruenonenone
»»»»» codestringtruenonenone
»»»»» messagestringtruenonenone
»»»» usernameobjecttruenonenone
»»»»» codestringtruenonenone
»»»»» messagestringtruenonenone
» namestringtruenonenone