Create a subscription availability schedule
post
/crmRestApi/resources/11.13.18.05/subscriptionCoverageExceptions/{ExceptionPuid}/child/SubscriptionCoverageAvailability
Request
Path Parameters
-
ExceptionPuid(required): string
The public unique identifier of the subscription exception.
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-
Availability: string
Title:
AvailabilityMaximum Length:1000The name of the availability. -
AvailabilityCode: string
Title:
HoursMaximum Length:30The code of the availaility. -
AvailabilityId: integer
(int64)
The unique identifier of the availability.
-
AvailabilityPuid: string
Maximum Length:
120The public unique identifier of the availability. -
AvailableDay: string
Title:
DaysThe available day for the subscription. -
Duration: integer
(int32)
Title:
DurationThe duration of the event. -
EndDate: string
(date)
The end date of the event.
-
EndHour: number
The end hour of the subcription.
-
EndMinute: number
The end minute of the subcription.
-
EventDay: string
Title:
DateMaximum Length:300The day of the event. -
EventName: string
Title:
EventMaximum Length:300The name of the event. -
FriYn: string
Maximum Length:
1Indicates if subscription coverage is available on Friday. -
MonthCode: string
Maximum Length:
30The code of the month associated with the week. -
MonYn: string
Maximum Length:
1Indicates if subscription coverage is available on Monday. -
NoBreakFlag: boolean
Maximum Length:
1Default Value:falseIndicates whether it has any break record associated with the exception. -
ObjectCode(required): string
Maximum Length:
30The code of the object as defined in OBJECTS Metadata. -
ObjectId(required): integer
(int64)
The unique idetifier of the object.
-
OneTimeFlag: boolean
Title:
OnceMaximum Length:1Indicates if the event is a one time event. -
OptionCode: string
Maximum Length:
30The option code associted with the event. -
SatYn: string
Maximum Length:
1Indicates if subscription coverage is available on Saturday. -
SelectedDays: object
SelectedDays
The days selected for the subscription.
-
StartDate: string
(date)
The start date of the event.
-
StartHour: number
The start hour of the subscription.
-
StartMinute: number
The start minute of the subcription.
-
SubscriptionCoverageBreak: array
Subscription Coverage Breaks
Title:
Subscription Coverage BreaksThe subscription coverage break resource is used to view the availability schedule breaks. The availability schedule break object has details such as start hour, start minute,end hour, end minute. -
SunYn: string
Maximum Length:
1Indicates if subscription coverage is available on Sunday. -
ThuYn: string
Maximum Length:
1Indicates if subscription coverage is available on Thursday. -
TueYn: string
Maximum Length:
1Indicates if subscription coverage is available on Tuesday. -
WedYn: string
Maximum Length:
1Indicates if subscription coverage is available on Wednesday. -
WeekCode: string
Maximum Length:
30The code of the week associated wth the week.
Nested Schema : SelectedDays
Type:
objectThe days selected for the subscription.
Nested Schema : Subscription Coverage Breaks
Type:
arrayTitle:
Subscription Coverage BreaksThe subscription coverage break resource is used to view the availability schedule breaks. The availability schedule break object has details such as start hour, start minute,end hour, end minute.
Show Source
Nested Schema : subscriptionCoverageExceptions-SubscriptionCoverageAvailability-SubscriptionCoverageBreak-item-post-request
Type:
Show Source
object-
AvailabilityId: integer
(int64)
The unique identifier of the availability.
-
BreakId: integer
(int64)
The unique identifier of the break
-
BreakPuid: string
Maximum Length:
120The public unique identifier of the break. -
EndHour: number
The end hour of the break.
-
EndMinute: number
The end minute of the break.
-
ObjectCode: string
Maximum Length:
30The code associated with the object. -
StartHour: number
The start hour of the break.
-
StartMinute: number
The start minute of the break.
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 : subscriptionCoverageExceptions-SubscriptionCoverageAvailability-item-response
Type:
Show Source
object-
Availability: string
Title:
AvailabilityMaximum Length:1000The name of the availability. -
AvailabilityCode: string
Title:
HoursMaximum Length:30The code of the availaility. -
AvailabilityHours: string
Title:
MeaningRead Only:trueMaximum Length:80The availability hours for the subscription. -
AvailabilityId: integer
(int64)
The unique identifier of the availability.
-
AvailabilityPuid: string
Maximum Length:
120The public unique identifier of the availability. -
AvailableDay: string
Title:
DaysThe available day for the subscription. -
AvailableDayMeaning: string
Read Only:
trueThe day when the subscritpion coverage is available. -
BreakTime: string
Title:
BreakRead Only:trueThe break time associated with the subscription. -
CreatedBy: string
Read Only:
trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Read Only:
trueThe date when the record was created. -
Duration: integer
(int32)
Title:
DurationThe duration of the event. -
EndDate: string
(date)
The end date of the event.
-
EndHour: number
The end hour of the subcription.
-
EndMinute: number
The end minute of the subcription.
-
EventDay: string
Title:
DateMaximum Length:300The day of the event. -
EventName: string
Title:
EventMaximum Length:300The name of the event. -
ExceptionPuid: string
Read Only:
trueMaximum Length:120The value that uniquely identifies the parent coverage exception against an availability. -
FriYn: string
Maximum Length:
1Indicates if subscription coverage is available on Friday. -
IntervalPuid: string
Read Only:
trueMaximum Length:120The value that uniquely identifies the parent coverage interval against an availability. -
LastUpdateDate: string
(date-time)
Read Only:
trueThe date when the record was last updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64The user who last updated the record. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MonthCode: string
Maximum Length:
30The code of the month associated with the week. -
MonYn: string
Maximum Length:
1Indicates if subscription coverage is available on Monday. -
NoBreakFlag: boolean
Maximum Length:
1Default Value:falseIndicates whether it has any break record associated with the exception. -
ObjectCode: string
Maximum Length:
30The code of the object as defined in OBJECTS Metadata. -
ObjectId: integer
(int64)
The unique idetifier of the object.
-
OneTimeFlag: boolean
Title:
OnceMaximum Length:1Indicates if the event is a one time event. -
OptionCode: string
Maximum Length:
30The option code associted with the event. -
SatYn: string
Maximum Length:
1Indicates if subscription coverage is available on Saturday. -
SelectedDays: object
SelectedDays
The days selected for the subscription.
-
StartDate: string
(date)
The start date of the event.
-
StartHour: number
The start hour of the subscription.
-
StartMinute: number
The start minute of the subcription.
-
SubscriptionCoverageBreak: array
Subscription Coverage Breaks
Title:
Subscription Coverage BreaksThe subscription coverage break resource is used to view the availability schedule breaks. The availability schedule break object has details such as start hour, start minute,end hour, end minute. -
SunYn: string
Maximum Length:
1Indicates if subscription coverage is available on Sunday. -
ThuYn: string
Maximum Length:
1Indicates if subscription coverage is available on Thursday. -
TueYn: string
Maximum Length:
1Indicates if subscription coverage is available on Tuesday. -
WedYn: string
Maximum Length:
1Indicates if subscription coverage is available on Wednesday. -
WeekCode: string
Maximum Length:
30The code of the week associated wth the week.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : SelectedDays
Type:
objectThe days selected for the subscription.
Nested Schema : Subscription Coverage Breaks
Type:
arrayTitle:
Subscription Coverage BreaksThe subscription coverage break resource is used to view the availability schedule breaks. The availability schedule break object has details such as start hour, start minute,end hour, end minute.
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 : subscriptionCoverageExceptions-SubscriptionCoverageAvailability-SubscriptionCoverageBreak-item-response
Type:
Show Source
object-
AvailabilityId: integer
(int64)
The unique identifier of the availability.
-
AvailabilityPuid: string
Read Only:
trueMaximum Length:120The value that uniquely identifies the parent coverage availability against a break. -
BreakId: integer
(int64)
The unique identifier of the break
-
BreakPuid: string
Maximum Length:
120The public unique identifier of the break. -
CreatedBy: string
Read Only:
trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Read Only:
trueThe date when the record was created. -
EndHour: number
The end hour of the break.
-
EndMinute: number
The end minute of the break.
-
LastUpdateDate: string
(date-time)
Read Only:
trueThe date when the record was last updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64The user who last updated the record. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ObjectCode: string
Maximum Length:
30The code associated with the object. -
StartHour: number
The start hour of the break.
-
StartMinute: number
The start minute of the break.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- AvailabilityMeaningVA
-
Parameters:
- finder:
LookupTypeIsActiveEnabledFinder%3BBindLookupType%3DORA_OSS_SCHED_HOURS
The list of values indicating the code of the availaility .
The following properties are defined on the LOV link relation:- Source Attribute: AvailabilityCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- MonthVA
-
Parameters:
- finder:
LookupTypeIsActiveEnabledFinder%3BBindLookupType%3DORA_OSS_SCHED_RELATIVE_MONTH
The list of values indicating the month code.
The following properties are defined on the LOV link relation:- Source Attribute: MonthCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- OptionCodeVA
-
Parameters:
- finder:
LookupTypeIsActiveEnabledFinder%3BBindLookupType%3DORA_OSS_SCHED_RELATIVE_ORDER
The list of values indicating the option code associted with the event.
The following properties are defined on the LOV link relation:- Source Attribute: OptionCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- SubscriptionCoverageBreak
-
Parameters:
- AvailabilityPuid:
$request.path.AvailabilityPuid - ExceptionPuid:
$request.path.ExceptionPuid
The subscription coverage break resource is used to view the availability schedule breaks. The availability schedule break object has details such as start hour, start minute,end hour, end minute. - AvailabilityPuid:
- WeekVA
-
Parameters:
- finder:
LookupTypeIsActiveEnabledFinder%3BBindLookupType%3DORA_OSS_DAY_OF_WEEK
The list of values indicating the day codes in a week.
The following properties are defined on the LOV link relation:- Source Attribute: WeekCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder: