Services

Create a service

Changed on

Create a new service on a deal.

post/api/v2/services

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/services
  • Auth
    none declared

Request body

Example request

{
  "data": {
    "type": "services",
    "attributes": {
      "name": "Frontend Development",
      "description": "Building React components and user interfaces",
      "time_tracking_enabled": true,
      "billing_type_id": 1
    },
    "relationships": {
      "deal": {
        "data": {
          "type": "deals",
          "id": "89"
        }
      },
      "service_type": {
        "data": {
          "type": "service_types",
          "id": "5"
        }
      }
    }
  }
}

Response

Single service

Example response

{
  "data": {
    "id": "1856422",
    "type": "services",
    "attributes": {
      "name": "Frontend Development",
      "position": 1,
      "deleted_at": null,
      "description": "Building React components and user interfaces",
      "time_tracking_enabled": true,
      "expense_tracking_enabled": false,
      "booking_tracking_enabled": true,
      "origin_service_id": null,
      "initial_service_id": 1856422,
      "editor_config": {},
      "custom_fields": null,
      "billing_type_id": 1,
      "limitation_type": "no_limitation",
      "worked_time": 4800,
      "billable_time": 4800,
      "estimated_time": 8000,
      "budgeted_time": 8000,
      "currency": "USD"
    },
    "relationships": {
      "service_type": {
        "data": {
          "type": "service_types",
          "id": "5"
        }
      },
      "deal": {
        "data": {
          "type": "deals",
          "id": "89"
        }
      },
      "person": {
        "data": null
      },
      "section": {
        "data": null
      }
    }
  },
  "included": []
}

Changes

    • 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

    • breaking

      the // response's property type changed from integer to no type for status

    • warning

      deleted the header request parameter X-Organization-Id

    This list may be incomplete.