POST Api/Resource/Request/ExtraCode

Create a new extra code request.

Request Information

URI Parameters

None.

Body Parameters

ExtraCodeModel
NameDescriptionTypeAdditional information
requestId

integer

Required

extraCodeId

integer

Required

StartTime

date

Required

EndTime

date

None.

IsWholeDay

boolean

None.

RecurrenceModel

RecurrenceModel

None.

Comment

string

None.

RequestChannel

RequestChannel

None.

Request Formats

application/json, text/json

Sample:
{
  "requestId": 1,
  "extraCodeId": 2,
  "StartTime": "2024-12-22T08:18:56.2906409+01:00",
  "EndTime": "2024-12-22T08:18:56.2906409+01:00",
  "IsWholeDay": true,
  "RecurrenceModel": {
    "EndDate": "2024-12-22T08:18:56.2906409+01:00",
    "Amount": 2,
    "Monday": true,
    "Tuesday": true,
    "Wednesday": true,
    "Thursday": true,
    "Friday": true,
    "Saturday": true,
    "Sunday": true,
    "Repeat": 10,
    "RepeatSelected": true,
    "RecurrenceType": 12
  },
  "Comment": "sample string 6",
  "RequestChannel": 1
}

application/xml, text/xml

Sample:
<ExtraCodeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RostarCASWebAPI.Models.Requests">
  <Comment>sample string 6</Comment>
  <EndTime>2024-12-22T08:18:56.2906409+01:00</EndTime>
  <IsWholeDay>true</IsWholeDay>
  <RecurrenceModel>
    <Amount>2</Amount>
    <EndDate>2024-12-22T08:18:56.2906409+01:00</EndDate>
    <Friday>true</Friday>
    <Monday>true</Monday>
    <RecurrenceType>12</RecurrenceType>
    <Repeat>10</Repeat>
    <RepeatSelected>true</RepeatSelected>
    <Saturday>true</Saturday>
    <Sunday>true</Sunday>
    <Thursday>true</Thursday>
    <Tuesday>true</Tuesday>
    <Wednesday>true</Wednesday>
  </RecurrenceModel>
  <RequestChannel>SMS</RequestChannel>
  <StartTime>2024-12-22T08:18:56.2906409+01:00</StartTime>
  <extraCodeId>2</extraCodeId>
  <requestId>1</requestId>
</ExtraCodeModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.