Optional
adminAttachments methods
Request Comments methods
Request Costing methods
Get a list of problem nodes for a domain
The domain ID for which to retrieve problem nodes.
Return only view only problem nodes. Defaults to false.
Optional
displayMode: ObjectObject that should contain two properties if you provide it: DisplayTextMode: string (C = Code, D = Description, CD = Code ~ Description). DisplayTextDelimeter: string, only impacts CD display text mode.
Return only cancelled problem nodes as well. Defaults to false.
Returns Promise that represents a collection of problem node objects.
Get the records on the basis of RequestId, only populates RequestId, Description, ProblemCode properties
???, see instance docs: /{subdirectory}/apidocs/#/service-info/Ams/ServiceRequest
Returns Promise that represents a collection of the matching (limited) request objects
Get custom field templates for problem code
The problemSid whose template custom fields should be returned
Returns Promise that represents a collection of custom fields
Get a list of possible DispatchTo values
Domain to return possible dispatchTo values for
Returns Promise that represents an Array of dispatchTo options.
Get a list of possible Employee values
Which list (endpoint) to get. Includes only DispatchTo & SubmitTo.
Domain to return possible dispatchTo values for
Returns Promise that represents an Array of Employee options.
Get a list of a problem code's priorities
Return priorities for given problemSid
Returns Promise that represents an Array of priorities
Get problem leaf (template) by Sid
Return problem leaf for given problemSid
Returns Promise that represents an Object that describes the problem leaf (template)
Get a list of problem codes
Return only publicly-available service requests. Defaults to false.
Return only active templates. Defaults to true.
Optional
domainIds: number[]Returns Promise that represents an Array of problem name objects.
Get a list of problem codes by keywords
Keywords to search for potential problem codes
Returns Promise that represents an Array of problem name objects.
Get the questions and answer options for a problem code
The problemSid whose Q&A should be returned
Returns Promise that represents a collection of questions and answer settings
Get a list of default statuses
List of domains to return default statuses for
Returns Promise that represents an Array of statuses.
Get a list of possible SubmitTo values
Domain to return possible submitTo values for
Returns Promise that represents an Array of submitTo options.
Get street codes
Returns Promise that represents an Array of Street Codes.
Search for requests
The search information to retrieve matched requests, see instance docs: /{subdirectory}/apidocs/#/service-info/Ams/ServiceRequest
Returns Promise that represents an Array of the matching request IDs
Create a search definition. Save the definition by setting SaveDefinition = true and supplying a SearchName.
Search data variables. See /{subdirectory}/apidocs/#/service-info/Ams/ServiceRequestTemplate
Optional
searchName: stringWhat to name your search (if it should be saved)
Optional
sharedWithin: numberWhat group or domain to share the search to.
Whether or not to save the search definition. Defaults to true when a search name is specified.
Returns Promise that represents a collection of Cityworks Metadata Objects. See: /{subdirectory}/apidocs/#/data-type-info;dataType=CWMetadata
Get the questions and answers for a(many) request template(s)
An array list of problemSids to retrieve templates for
Optional
minimumDateModified: DateOptional
maximumDateModified: DateReturns Promise that represents a collection of ProblemQAs. See /{subdirectory}/apidocs/#/data-type-info;dataType=ProblemQA
Get request templates (problem leaf[s])
Optional
templateIds: number[]Array of specific template IDs to retrieve
If true, only return templates the user can create, ignored if false or null, default is false
If true, returns inactive templates, default is false
Optional
minimumDateModified: Date?
Optional
maximumDateModified: Date?
Returns Promise that represents a collection of Problem Leafs. See /{subdirectory}/apidocs/#/data-type-info;dataType=ProblemLeaf
Get a list of templates
An array list of problemSids to retrieve templates for
Optional
minimumDateModified: Date?
Optional
maximumDateModified: Date?
Returns Promise that represents
Get WorkOrder templates that are associated to this request template type
An array list of problemSids to retrieve Problem WO templates for
Returns Promise that represents a collection of Problem WO Templates. See /{subdirectory}/apidocs/#/data-type-info;dataType=ProblemWOTemplate
Get a list of template id results for a provided search parameters
Search data variables. See /{subdirectory}/apidocs/#/service-info/Ams/ServiceRequestTemplate
Returns Promise that represents a list of template IDs.
Cancel requests
An array of the IDs to cancel the matched requests
Optional
cancelReason: stringA reason for cancelling the request(s)
Optional
dateCancelled: DateThe date/time that it should be indicated the request was cancelled
Returns object that represents a collection of requests
Change custom field category for provided requests
The RequestIds whose custom fields should be returned
The new custom field grouping/category which should be assigned to the provided requests
Returns Promise that represents a collection of requests
Change a request's problem code
The request ID to change
The request's new ProblemSID
Returns Promise that represents an object describing the updated request
Close requests
An array of the IDs to close the matched requests
Returns object that represents a collection of requests
Create new requests
See /{subdirectory}/apidocs/#/data-type-infodataType=RequestBase on the Cityworks instance
Returns Promise that represents an object describing the newly-created request
Create a search definition. Save the definition by setting SaveDefinition = true and supplying a SearchName.
Search data variables. See /{subdirectory}/apidocs/#/service-info/Ams/ServiceRequest
Optional
searchName: stringWhat to name your search (if it should be saved)
Optional
sharedWithin: numberWhat group or domain to share the search to.
Whether or not to save the search definition. Defaults to true when a search name is specified.
Whether or not to enable EURL for the saved search. Defaults to true.
Returns Promise that represents a collection of Cityworks Metadata Objects
Delete requests
An array of the IDs to delete the matched requests
Returns object that represents a collection of request Ids which have been deleted
Delete Map Layer Fields
The request ID to delete the map layer fields for.
Returns Promise that represents a collection of Objects describing the deleted map layer fields
Get the audit log for a specific request
A Request ID to get the audit log for
Returns Promise that represents a collection of Cityworks Metadata Objects
Get a request by ID
The ID of the request to retrieve
Returns Promise that represents an object describing the request
Get requests by array of IDs
The request IDs to retrieve
Returns Promise that represents a collection of Objects describing the requests
Get custom fields for provided requests
The RequestIds whose custom fields should be returned
Returns Promise that represents a collection of custom fields
Get Map Layer Fields
The request ID to get the map layer fields for.
Returns Promise that represents a collection of Objects describing the request map layer fields
Move a request's point
Should include at least WKT or WKID attribute. Can also include VcsWKID attribute.
Optional
z: numberOptional Z coordinate
Returns Promise that represents an object describing the updated GISPoint
Reopen closed requests
An array of the IDs to reopen the matched requests
Returns object that represents a collection of requests
Uncancel requests
An array of the IDs to uncancel the matched requests
Returns object that represents a collection of requests
Update a request
See /{subdirectory}/apidocs/#/data-type-infodataType=RequestBase on the Cityworks instance
Returns Promise that represents an object describing the updated request
Update Map Layer Fields
The service request ID to get the map layer fields for.
Object with X, Y, and optional Z coordinate specified.
Optional
problemsId: numberOptional. Problem Leaf (template) ID. If provided, the map layer fields will be updated from the service request template (problem leaf) otherwise, only existing updated.
Optional
domainId: numberOptional. Domain ID of org
Returns Promise that represents an object with all the updated GIS info for the request, including a collection of the updated map layer fields
Request Administration methods