Module: FreshService::Client::V2::ServiceRequest::Create
- Included in:
- FreshService::Client
- Defined in:
- lib/fresh_service/client/v2/service_request/create.rb
Instance Method Summary collapse
-
#create_service_request(display_id, options = {}) ⇒ Object
Create a ServiceRequest.
Instance Method Details
#create_service_request(display_id, options = {}) ⇒ Object
Create a ServiceRequest
| Attribute | Type | Description | | display_id | number | Service Item ID inside service catalog | | quantity | number | Quantity needed by the requested | | requested_for | email | Email id of the requester on whose behalf the service request is created | | email | email | Email id of the requester | | child_items | - | Provide the display id as service_item_id for each child item. | | custom_fields | - | Values of custom fields present in the service item form |
21 22 23 |
# File 'lib/fresh_service/client/v2/service_request/create.rb', line 21 def create_service_request(display_id, = {}) post "/service_catalog/items/#{display_id}/place_request", end |