Create an inspection calendar
post
/fscmRestApi/resources/11.13.18.05/publicSectorInspectionCalendars
Request
Header Parameters
-
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.
-
Upsert-Mode:
When set to true, the server will perform an Upsert operation instead of a Create. In an Upsert operation the server attempts to find an existing resource that matches the payload. If found, the server updates the existing resource instead of creating a new one. If not found, or when set to false (the default), a Create is performed.
Supported Media Types
- application/json
The following table describes the body parameters in the request for this task.
Root Schema : schema
Type:
Show Source
object-
AgencyId: integer
Title:
Agency IDDefault Value:1The agency identifier of the public sector entity to which this inspection calendar applies. -
BetwRecurNum: integer
(int32)
Title:
Weeks Between OccurrencesThe number of weeks between occurrences of the schedule. If Recurrence is true, this is a required field. -
CalendarId: string
Title:
Calendar IDMaximum Length:30The unique identifier for the inspection calendar. -
Description: string
Title:
DescriptionMaximum Length:100The description of the inspection calendar. -
DistrictId: string
Title:
DistrictMaximum Length:30The district identifier to which this inspection calendar applies. A list of accepted values is returned by DistrictPromptVO1. -
FriFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Friday. -
InspectionType: string
Title:
Inspection TypeMaximum Length:15The type of inspection to which this inspection calendar applies. A list of accepted values is returned by InspectionTypePVO1. -
MonFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Monday. -
Recurrence: string
Title:
RecurrenceMaximum Length:3The recurrence indicates whether the schedule repeats on a weekly basis. If true, the schedule repeats every BetwRecurNum weeks. If false, the schedule does not repeat. The default value is true. -
SatFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Saturday. -
SunFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Sunday. -
ThuFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Thursday. -
TimeFrom: string
(date-time)
Title:
Start TimeThe start time at which any inspectors using this inspection calendar are available to be assigned to an inspection. -
TimeRange: string
Title:
TimeMaximum Length:80The time range (start time to end time) during which any inspectors using this inspection calendar are available to be assigned to an inspection. This attribute is read-only, it cannot be updated by the resource consumer. -
TimeTo: string
(date-time)
Title:
End TimeThe end time after which any inspectors using this inspection calendar are no longer available. -
TueFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Tuesday. -
ValidFromDate: string
(date)
Title:
Start DateThe start date on which the inspection calendar becomes effective. -
ValidToDate: string
(date)
Title:
End DateThe end date after which the inspection calendar is no longer effective. -
WedFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Wednesday.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context(required):
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(required):
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 : publicSectorInspectionCalendars-item-response
Type:
Show Source
object-
AgencyId: integer
Title:
Agency IDDefault Value:1The agency identifier of the public sector entity to which this inspection calendar applies. -
BetwRecurNum: integer
(int32)
Title:
Weeks Between OccurrencesThe number of weeks between occurrences of the schedule. If Recurrence is true, this is a required field. -
CalendarId: string
Title:
Calendar IDMaximum Length:30The unique identifier for the inspection calendar. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64This attribute is deprecated and should not be used. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThis attribute is deprecated and should not be used. -
Description: string
Title:
DescriptionMaximum Length:100The description of the inspection calendar. -
DistrictId: string
Title:
DistrictMaximum Length:30The district identifier to which this inspection calendar applies. A list of accepted values is returned by DistrictPromptVO1. -
FriFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Friday. -
InspectionType: string
Title:
Inspection TypeMaximum Length:15The type of inspection to which this inspection calendar applies. A list of accepted values is returned by InspectionTypePVO1. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThis attribute is deprecated and should not be used. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64This attribute is deprecated and should not be used. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MonFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Monday. -
Recurrence: string
Title:
RecurrenceMaximum Length:3The recurrence indicates whether the schedule repeats on a weekly basis. If true, the schedule repeats every BetwRecurNum weeks. If false, the schedule does not repeat. The default value is true. -
SatFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Saturday. -
SunFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Sunday. -
ThuFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Thursday. -
TimeFrom: string
(date-time)
Title:
Start TimeThe start time at which any inspectors using this inspection calendar are available to be assigned to an inspection. -
TimeRange: string
Title:
TimeMaximum Length:80The time range (start time to end time) during which any inspectors using this inspection calendar are available to be assigned to an inspection. This attribute is read-only, it cannot be updated by the resource consumer. -
TimeTo: string
(date-time)
Title:
End TimeThe end time after which any inspectors using this inspection calendar are no longer available. -
TueFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Tuesday. -
ValidFromDate: string
(date)
Title:
Start DateThe start date on which the inspection calendar becomes effective. -
ValidToDate: string
(date)
Title:
End DateThe end date after which the inspection calendar is no longer effective. -
WedFlag: string
Maximum Length:
1Indicates that the inspector is available to be assigned on Wednesday.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
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.