Create or replace a project
Idempotent: the slug in the path is the identity. 201 when the project was created, 200 when an existing one was replaced. Optional fields left out are cleared.
Idempotent: the slug in the path is the identity. 201 when the project was created, 200 when an existing one was replaced. Optional fields left out are cleared.
Authorization
apiKey An API key from the back office (settings → API), sent as Authorization: Bearer mlm_live_….
In: header
Path Parameters
^[a-z0-9]+(-[a-z0-9]+)*$2 <= length <= 100Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/v1/integration/projects/string" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "city": "string", "developerName": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "name": "string", "city": "string", "developerName": "string", "description": "string", "logoUrl": "http://example.com", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "nameEn": "string", "unitCount": 0}Change some fields of a unit PATCH
Only the fields present in the body change. Price, deposit and VAT are refused with 409 while a buyer is mid-booking.
Create or replace a unit PUT
Idempotent: project slug and unit code are the identity. 201 when created, 200 when replaced. Optional fields left out are cleared. `status` left out is left alone; sent on a held, reserved or sold unit it is refused with 409. `images` and `files`, when present, replace the unit's linked media.