Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Health Check: The link has been rewritten to its master page by check 'P16'.

...

As of version 2.1.4.5, all GET requests for retrieving data will be done via the SQL endpoint. Please see the SQL for more information on how to create a request. Please see the Data Dictionary for comprehensive detail of available Tables and Data.

In an effort to make the PCR-360 API more flexible, PCR has made the decision to no longer create individual endpoints for all the different data types. Instead, PCR is encouraging Users to use the SQL endpoint with a structured SELECT statement to retrieve exactly the data you want. Please see the SQL endpoint documentation  documentation for more information.

An example query to retrieve basic Service Desk Action data is as follows:

...

  • Add
  • Move
  • Upgrade/Downgrade
  • Remove
  • Miscellaneous

Available Fields

Field

Required for INSERT

Required for UPDATE

Required for Action Type

Data Type

Options

Notes

type

Yes

Yes

 


String

ACTION

Required for ALL Service Desk Action Requests

RECID / sda_number

No

Yes*

 


Integer

 


*Either “RECID” or “sda_number” are required when attempting to UPDATE, but not both

sd_recid / sd_number

Yes*

No

 


Integer / String

 


*Either “sd_recid” or “sd_number” are required when attempting to INSERT, but not both

sd_action

Yes

No

 


String

ADD, CHG_MOVE, CHG_UPDOWN, CHG_MISC, REMOVE

The type of Service Desk Action to be created

location

No*

No*

 


Integer

 


RECID of Location / *Some Services can make the Location required

moveto_location

No

No

 


Integer

 


RECID of Location

catalog

Yes

No

ADD, CHG_UPDOWN

Integer

 


RECID of Service Catalog

service / service_id

Yes

No

CHG_UPDOWN, CHG_MOVE, CHG_MISC, REMOVE

Integer

 


*Either RECID of Service or SERVICE_ID of Service needs to be provided

sla

No

No

 


Integer

SLAs

RECID of SLA

due_date

No

No

 


String

 


Format “YYYY/MM/DD”

service_host / service_host_name

No*

No*

 


Integer / String

Service Hosts

RECID of Service Host / Name of Service Host / Either RECID or Name should be provided / *Some Services require Service Host

reference

No

No

 


String

 

 



owner_contact

No

No

 


Integer

Contacts

RECID of Contact. Only a Contact or Department can be Owner, not both.

owner_department

No

No

 


Integer

Department Hierarchy

RECID of Department. Only a Contact or Department can be Owner, not both.

urgency

No

No

 


Integer / String

Urgency

Can be RECID or VALUE

start_date

No

No

 


String

 


Format: “YYYY/MM/DD”

gla

No

No

 


Integer

 


Multiple are sent comma delimited. Example: gla1,gla2,gla3

gla_type

Only if gla is sent

Only if gla is sent

 


String

Options: Default, Usage, Equipment and Labor

Multiple are sent comma delimited. Example: type1,type2,type3.

gla_percent

Only if gla is sent

Only if gla is sent

 


Integer

The total of all percentages for a single type must be 100

Mutliple are sent comma delimited. Example: percent1,percent2,percent3.

udf_IDENTIFIER

No

No

 


Mixed

 


IDENTIFIER is the unique identifier string given to each UDF

Results

If the request is successful, the RECID of the Action will be returned as follows:

...

Code Block
languagexml
POST http://DOMAIN/api/API_KEY/servicedesk.OUTPUT?field1=value1 ...

Available Fields

Field

Required

Data Type

Options

Default

Notes

type

yes

String

 


UDFS

type=UDFS is required

sd_recid

yes*

Integer

 

 



The RECID of the Service Desk item that the UDF is for. _*See NOTE below_

sda_recid

yes*

Integer

 

 



The RECID of the Action. _*See NOTE below_

sd_number

yes*

String

 

 



The Number of the Service Desk item that the UDF is for. _*See NOTE below_

sda_number

yes*

Integer

 

 



The Number of the Action that the UDF is for. _*See NOTE below_

udf_IDENTIFIER

yes

Mixed

 

 



IDENTIFIER is the unique Identifier of the UDF to assign the value to. Example: udf_LEGACYNUM=value

NOTES

  • Either "sd_recid" or "sd_number" need to be provided, but not both
  • Either "sda_number" or "sda_recid" is required, but not both
  • "sd_recid", "sd_number" and "sda_number" can be omitted if "sda_recid" is provided

...

Code Block
languagexml
POST http://DOMAIN/api/API_KEY/servicedesk.OUTPUT?field1=value1 ...

Available Fields

Field

Required

Data Type

Options

Default

Notes

type

yes

String

 


GLA

type=GLA is required

sd_recid

yes*

Integer

 

 



The RECID of the Service Desk item that the UDF is for. _*See NOTE below_

sda_recid

yes*

Integer

 

 



The RECID of the Action. _*See NOTE below_

sd_number

yes*

String

 

 



The Number of the Service Desk item that the UDF is for. _*See NOTE below_

sda_number

yes*

Integer

 

 



The Number of the Action that the UDF is for. _*See NOTE below_

gla

yes

Mixed

 

 



A single GLA RECID or comma-separated GLA RECIDs

gla_type

yes

String

 

 



A single GLA type or comma-separated GLA types. Example: "Default" or "Usage"

gla_percent

yes

Mixed

 

 



A single number of "100" or comma-separated numbers that equal 100. Example: "50,50"

NOTES

  • Either "sd_recid" or "sd_number" need to be provided, but not both
  • Either "sda_number" or "sda_recid" is required, but not both
  • "sd_recid", "sd_number" and "sda_number" can be omitted if "sda_recid" is provided

...

Service Desk Action GLA App Record

Image Modified

Locating Service Desk Action Data

Please see the wiki entry for Service Desk Actions for detailed information about where this data can be found.

Child pages (Children Display)
styleh6
sorttitle