Service Offerings - Standard Service Requests API

List all standard service requests of a service offering

List all standard service requests of the service offering with a specific ID:

GET /service_offerings/:id/standard_service_requests

Response

Status: 200 OK
[
  {
    "id": 1,
    "created_at": "2016-08-23T13:43:01-07:00",
    "updated_at": "2016-08-23T13:43:01-07:00",
    "request_template": {
      "id": 5,
      "subject": "Creation or modification of ITRP report",
      "localized_subject": "Creation or modification of ITRP report"
    },
    "response_target": 60,
    "resolution_target": null,
    "support_hours": {
      "name": "Monday through Friday, 7:00am until 5:00pm",
      "id": 86
    }
  },
  {
    "id": 15,
    "created_at": "2016-03-13T19:22:40-07:00",
    "updated_at": "2016-03-13T19:22:40-07:00",
    "request_template": {
      "id": 6,
      "subject": "Request for information concerning ITRP",
      "localized_subject": "Request for information concerning ITRP"
    },
    "response_target": 5,
    "resolution_target": 12,
    "support_hours": {
      "name": "24x7 (Monday through Sunday)",
      "id": 85
    }
  }
]

The response contains these fields by default.

Add a standard service request to a service offering

Add a standard service request to a service offering with a specific ID.

POST /service_offerings/:id/standard_service_requests

When creating a new standard service request for a service offering these fields are available.

Response

Status: 201 Created
{
  "created_at": "2015-04-09T02:43:20-07:00",
  "id": 19,
  "request_template": {
    "id": 25,
    "subject": "Move Personal Computer",
    "localized_subject": "Move Personal Computer"
  },
  "resolution_target": 480,
  "response_target": 120,
  "support_hours": {
    "id": 34,
    "name": "Monday through Friday, 7:00am until 5:00pm"
  },
  "updated_at": "2015-04-09T02:43:20-07:00"
}

Update a standard service request of a service offering

Update a standard service request with a specific ID of a service offering with a specific ID.

PATCH /service_offerings/:id/standard_service_requests/:standard_service_request_id

When updating an existing standard service request for a service offering these fields are available.

Response

Status: 200 OK
{
  "created_at": "2015-04-09T02:43:20-07:00",
  "id": 19,
  "request_template": {
    "id": 25,
    "subject": "Move Personal Computer",
    "localized_subject": "Move Personal Computer"
  },
  "resolution_target": 480,
  "response_target": 120,
  "support_hours": {
    "id": 34,
    "name": "Monday through Friday, 7:00am until 5:00pm"
  },
  "updated_at": "2015-04-09T02:43:20-07:00"
}

Remove a standard service request from a service offering

Remove a standard service request with a specific ID from a service offering with a specific ID.

DELETE /service_offerings/:id/standard_service_requests/:standard_service_request_id

Response

Status: 204 No Content

Remove all standard service requests from a service offering

Remove all standard service requests from a service offering with a specific ID.

DELETE /service_offerings/:id/standard_service_requests

Response

Status: 204 No Content

Fields

request_template_id
Required reference to Request template — The ID of the request template related to the service offering. Only the request templates that are linked to the same service as the service offering can be selected.
response_target
Optional integer — Number of minutes within which a response needs to have been provided for a request to which the request template has been applied and which requester is covered by an SLA that is based on the service offering.
resolution_target
Optional integer — Number of minutes within which a request needs to have been completed when the request template has been applied to the request and the requester is covered by an SLA that is based on the service offering.
support_hours_id
Optional reference to Calendar — The ID of the calendar that defines the support hours for a request to which the request template has been applied and which requester is covered by an SLA that is based on the service offering.