Create a project work order

POST /projects/workorder

Body

  • id string Required

    Your reference for the work order. Multiple request with same id will be processed only once.

  • proposalId string Required

    Proposal ID to match project

  • Description added to work order

Responses

  • Project work order with same ID already exists

    Hide response attributes Show response attributes object
    • traceId string

      Internal ID. Please provide this ID when contacting support

    • message string

      Message describing the error

  • Work order successfully created

    Hide response attributes Show response attributes object
    • id string

      ID for created work order in Trukks

    • title string

      Title for created work order in Trukks

    • message string

      Work order created

  • Invalid input / Project not found / Project contains more than one facility

    Hide response attributes Show response attributes object
    • traceId string

      Internal ID. Please provide this ID when contacting support

    • message string

      Message describing the error

  • Access token is missing or invalid

  • Internal error

    Hide response attributes Show response attributes object
    • traceId string

      Internal ID. Please provide this ID when contacting support

    • message string

      Message describing the error

POST /projects/workorder
curl \
 -X POST https://partner.trukks.se/doorway/v1/projects/workorder \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"id":"string","proposalId":"string","description":"string"}'
Request example
{
  "id": "string",
  "proposalId": "string",
  "description": "string"
}
Request examples
{
  "id": "string",
  "proposalId": "string",
  "description": "string"
}
Response examples (409)
{
  "traceId": "string",
  "message": "string"
}
Response examples (409)
{
  "traceId": "string",
  "message": "string"
}
Response examples (200)
{
  "id": "string",
  "title": "string",
  "message": "string"
}
Response examples (200)
{
  "id": "string",
  "title": "string",
  "message": "string"
}
Response examples (400)
{
  "traceId": "string",
  "message": "string"
}
Response examples (400)
{
  "traceId": "string",
  "message": "string"
}
Response examples (500)
{
  "traceId": "string",
  "message": "string"
}
Response examples (500)
{
  "traceId": "string",
  "message": "string"
}