Documents
Create a Document
Changed onThis endpoint allows you to create a Document attached to an entity by providing a publically accessible URL for the file. In addition you can add relevant information such as a title and description of the file.
post/documents
Request
- Base URLhttps://street.co.uk/open-api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"attributes": {
"key": "api_tenancy_guide"
}
}
}Response
Created.
Example response
{
"data": {
"attributes": {
"name": "p045126_01",
"order": 1,
"collection": "general",
"url": "https://ik.imagekit.io/street/street-live/properties/general/787110/p045126_01.jpg"
}
}
}Changes
- info
added the non-success response with the status
- info