Skip to content

trail-share

GET show

GET /trail-share/{id}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone

Response Examples

200 Response

{
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"id": "string",
"permission": "view",
"trail": "string",
"updated": "2019-08-24T14:15:22Z",
"user": "string"
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» idstringtruenonenone
» permissionstringtruenonenone
» trailstringtruenonenone
» updatedstring(date-time)truenonenone
» userstringtruenonenone

Enum

NameValue
permissionview
permissionedit

HTTP Status Code 404

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

POST update

POST /trail-share/{id}

Body Parameters

{
"trail": "string",
"user": "string",
"permission": "view"
}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone
Content-Typeheaderstringyesnone
bodybodyobjectnonone
» trailbodystringyesnone
» userbodystringyesnone
» permissionbodystringyesnone

Enum

NameValue
» permissionview
» permissionedit

Response Examples

200 Response

{
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"id": "string",
"permission": "view",
"trail": "string",
"updated": "2019-08-24T14:15:22Z",
"user": "string"
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» idstringtruenonenone
» permissionstringtruenonenone
» trailstringtruenonenone
» updatedstring(date-time)truenonenone
» userstringtruenonenone

Enum

NameValue
permissionview
permissionedit

HTTP Status Code 404

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

DELETE delete

DELETE /trail-share/{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

GET list

GET /trail-share

Response Examples

200 Response

[
{
"collectionId": "string",
"collectionName": "string",
"created": "string",
"id": "string",
"permission": "string",
"trail": "string",
"updated": "string",
"user": "string",
"expand": {
"user": {
"avatar": "string",
"collectionId": "string",
"collectionName": "string",
"id": "string",
"username": "string"
}
}
}
]

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstringtruenonenone
» idstringtruenonenone
» permissionstringtruenonenone
» trailstringtruenonenone
» updatedstringtruenonenone
» userstringtruenonenone
» expandobjecttruenonenone
»» userobjecttruenonenone
»»» avatarstringtruenonenone
»»» collectionIdstringtruenonenone
»»» collectionNamestringtruenonenone
»»» idstringtruenonenone
»»» usernamestringtruenonenone

PUT create

PUT /trail-share

Body Parameters

{
"trail": "string",
"user": "string",
"permission": "view"
}

Params

NameLocationTypeRequiredDescription
bodybodyobjectnonone
» trailbodystringyesnone
» userbodystringyesnone
» permissionbodystringyesnone

Enum

NameValue
» permissionview
» permissionedit

Response Examples

200 Response

{
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"id": "string",
"permission": "view",
"trail": "string",
"updated": "2019-08-24T14:15:22Z",
"user": "string"
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
400Bad RequestBad RequestInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» idstringtruenonenone
» permissionstringtruenonenone
» trailstringtruenonenone
» updatedstring(date-time)truenonenone
» userstringtruenonenone

Enum

NameValue
permissionview
permissionedit

HTTP Status Code 400

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