Skip to content

Create

POST is used to send data to the server to create/update a resource.

The data sent to the server with POST is stored in the request body of the HTTP request.

POST /clientprojects

POST /api/clientprojects HTTP/1.1
clientname: <Client Name>
authorization: <Token> 

Request Body

{                     
    "Name": "My Project",
    "Latitude": 57,
    "Longitude": 13,
    "OwnerOrganization": {
        "Id": "bb601d80-0c8d-4a4d-bece-230ad4b12d9c"
    },
    "LeadOrganization": {
        "Id": "bb601d80-0c8d-4a4d-bece-230ad4b12d9c"
    },
    "Location": {
        "Id": "af9d605a-fae6-4ed4-b123-d37dea32f0c3"        
    }
}

Response

The response will have Status Code 200 (OK) if the resource successfully created. Response body will have {Id} of the created resource.