Service Assignments

Create a service assignment

Changed on

Create a new service assignment.

post/api/v2/service_assignments

Request

  • Base URL
    https://developer.productive.io (the document declares no server; this is the origin it was published from)
  • URL
    https://developer.productive.io/api/v2/service_assignments
  • Auth
    none declared

Request body

Example request

{
  "data": {
    "type": "service_assignments",
    "attributes": {
      "billable": true
    },
    "relationships": {
      "person": {
        "data": {
          "type": "people",
          "id": "12"
        }
      },
      "service": {
        "data": {
          "type": "services",
          "id": "1856422"
        }
      }
    }
  }
}

Response

Single service assignment

Example response

{
  "data": {
    "id": "890",
    "type": "service_assignments",
    "attributes": {
      "billable": true
    },
    "relationships": {
      "person": {
        "data": {
          "type": "people",
          "id": "12"
        }
      },
      "service": {
        "data": {
          "type": "services",
          "id": "1856422"
        }
      }
    }
  },
  "included": []
}

Changes

    • warning

      added the new bad_decimal_format enum value to the // response property for the response status

    • warning

      added the new non_finite_number enum value to the // response property for the response status

    • warning

      added the new null_bytes_in_params enum value to the // response property for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • warning

      deleted the header request parameter X-Organization-Id

    This list may be incomplete.