Create a work order activity type
post
/crmRestApi/resources/11.13.18.05/workOrderActivityTypes
Request
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode: string
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
Description: string
Title:
DescriptionMaximum Length:240The description of the work order activity type. -
DisplaySequence: integer
(int64)
Title:
Display OrderThe ordering sequence number for the work order activity type. -
EnabledFlag: boolean
Title:
EnabledMaximum Length:1Default Value:falseIndicates whether the work order activity type is enabled. -
EstimatedDuration: integer
(int32)
Title:
Manual DurationIndicates the estimated duration time (in minutes) that it's expected to complete the work for this work order activity type. -
FsActivityTypeCd: string
Title:
Activity Type CodeMaximum Length:128Indicates the Field Service activity type code which identifies the activity type to use in Field Service for this work order activity type. -
Name(required): string
Title:
Work Order TypeMaximum Length:80The display value that identifies the work order activity type. -
translations: array
Work Order Activity Type Translations
Title:
Work Order Activity Type TranslationsThe work order activity type translations resource is used to view, create, update and delete the translatable values for the work order activity type resource. -
WoActivityTypeCd: string
Title:
Work Order Type CodeMaximum Length:30The work order activity type code. -
WoActivityTypeNumber: string
Title:
Activity Type NumberMaximum Length:30The alternate unique identifier of the work order activity type. -
WoIntegrationCd(required): string
Title:
Type of Work Order CodeMaximum Length:30Indicates the type of service work order this work order activity type is associated with.
Nested Schema : Work Order Activity Type Translations
Type:
arrayTitle:
Work Order Activity Type TranslationsThe work order activity type translations resource is used to view, create, update and delete the translatable values for the work order activity type resource.
Show Source
Nested Schema : workOrderActivityTypes-translations-item-post-request
Type:
Show Source
object-
Description: string
Title:
DescriptionMaximum Length:240The description of the translatable work order activity type. -
Language: string
Title:
LanguageMaximum Length:4The language to which the work order activity type is translated. -
Name: string
Title:
Activity TypeMaximum Length:80The translated display value that identifies the work order activity type. -
SourceLang: string
Title:
Source LanguageMaximum Length:4The source language from which the work order activity type is translated.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : workOrderActivityTypes-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the work order activity type. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date and time of creating the work order activity type. -
Description: string
Title:
DescriptionMaximum Length:240The description of the work order activity type. -
DisplaySequence: integer
(int64)
Title:
Display OrderThe ordering sequence number for the work order activity type. -
EnabledFlag: boolean
Title:
EnabledMaximum Length:1Default Value:falseIndicates whether the work order activity type is enabled. -
EstimatedDuration: integer
(int32)
Title:
Manual DurationIndicates the estimated duration time (in minutes) that it's expected to complete the work for this work order activity type. -
FsActivityTypeCd: string
Title:
Activity Type CodeMaximum Length:128Indicates the Field Service activity type code which identifies the activity type to use in Field Service for this work order activity type. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueIndicates the date and time of last update of the work order activity type. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The source who last updated the work order activity type. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Name: string
Title:
Work Order TypeMaximum Length:80The display value that identifies the work order activity type. -
translations: array
Work Order Activity Type Translations
Title:
Work Order Activity Type TranslationsThe work order activity type translations resource is used to view, create, update and delete the translatable values for the work order activity type resource. -
TypeName: string
Title:
Type of Work OrderRead Only:trueMaximum Length:80The type of the service work order. -
WoActivityTypeCd: string
Title:
Work Order Type CodeMaximum Length:30The work order activity type code. -
WoActivityTypeId: integer
(int64)
Title:
Work Order Activity Type IDRead Only:trueThe unique identifier of the work order activity type. -
WoActivityTypeNumber: string
Title:
Activity Type NumberMaximum Length:30The alternate unique identifier of the work order activity type. -
WoIntegrationCd: string
Title:
Type of Work Order CodeMaximum Length:30Indicates the type of service work order this work order activity type is associated with.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Work Order Activity Type Translations
Type:
arrayTitle:
Work Order Activity Type TranslationsThe work order activity type translations resource is used to view, create, update and delete the translatable values for the work order activity type resource.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : workOrderActivityTypes-translations-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the translatable work order activity type. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date and time of creating the translatable work order activity type. -
Description: string
Title:
DescriptionMaximum Length:240The description of the translatable work order activity type. -
Language: string
Title:
LanguageMaximum Length:4The language to which the work order activity type is translated. -
LanguageCode: string
Title:
Language CodeRead Only:trueMaximum Length:4The language code in which the work order activity type is translated. -
LanguageDisplayName: string
Title:
Language NameRead Only:trueMaximum Length:255The display language to which the work order activity type is translated. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueIndicates the date and time of last update of the translatable work order activity type. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The source who last updated the translatable work order activity type. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Name: string
Title:
Activity TypeMaximum Length:80The translated display value that identifies the work order activity type. -
SourceLang: string
Title:
Source LanguageMaximum Length:4The source language from which the work order activity type is translated. -
SourceLangCode: string
Title:
Language CodeRead Only:trueMaximum Length:4The source language code from which the work order activity type is translated. -
SourceLangDisplayName: string
Title:
Language NameRead Only:trueMaximum Length:255The source display language from which the work order activity type is translated. -
WoActivityTypeId: integer
(int64)
Title:
Work Order Activity Type IDRead Only:trueThe unique identifier of the translated work order activity type. This is a foreign key to the work order activity type table.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- WoIntegrationCdLookupLOV
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_SVC_WO_INT_CD%2CLookupCode%3DORA_WO_INT_FFS
The following properties are defined on the LOV link relation:- Source Attribute: WoIntegrationCd; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- translations
-
Operation: /crmRestApi/resources/11.13.18.05/workOrderActivityTypes/{WoActivityTypeNumber}/child/translationsParameters:
- WoActivityTypeNumber:
$request.path.WoActivityTypeNumber
The work order activity type translations resource is used to view, create, update and delete the translatable values for the work order activity type resource. - WoActivityTypeNumber: