Muokkaa

Jaa


Create projects

Create a project object in Business Central.

HTTP request

Replace the URL prefix for Business Central depending on environment following the guideline.

POST businesscentralPrefix/companies({id})/projects

Request headers

Header Value
Authorization Bearer {token}. Required.
Content-Type application/json

Request body

In the request body, supply a JSON representation of project object.

Response

If successful, this method returns 201 Created response code and a project object in the response body.

Example

Request

Here is an example of a request.

POST https://{businesscentralPrefix}/api/v2.0/companies({id})/projects
Content-type: application/json

{
    "number": "DEERFIELD, 8 WP",
    "displayName": "Setting up Eight Work Areas"
}

Response

Here is an example of the response.

HTTP/1.1 201 Created
Content-type: application/json

{
    "id": "22d7a1c5-bde4-ea11-bbf2-00155df3a615",
    "number": "DEERFIELD, 8 WP",
    "displayName": "Setting up Eight Work Areas"
}

Tips for working with the APIs
project
Get project
Delete project
Update project