POST Api/TimeRegistration/RegisterDutyAndExtraCodeAndChangeTimes
ehh not do it all or something
Request Information
URI Parameters
None.
Body Parameters
DutyAndExtraCodeAndChangeTimesModel| Name | Description | Type | Additional information |
|---|---|---|---|
| dutySchedulingDays | Collection of TimeRegistrationSchedulingDay |
None. |
|
| extraCodeSchedulingDays | Collection of TimeRegistrationSchedulingDay |
None. |
|
| register | boolean |
None. |
|
| checkConstraints | Collection of TimeRegistrationCheckConstraint |
None. |
Request Formats
application/json, text/json
Sample:
{
"dutySchedulingDays": null,
"extraCodeSchedulingDays": null,
"register": true,
"checkConstraints": [
{
"ControlTestID": 1,
"IsHard": true,
"OverrulingLimit": [
1.1,
2.1
],
"Date": "2025-12-26T06:36:23.1181661+01:00"
},
{
"ControlTestID": 1,
"IsHard": true,
"OverrulingLimit": [
1.1,
2.1
],
"Date": "2025-12-26T06:36:23.1181661+01:00"
}
]
}
application/xml, text/xml
Sample:
<DutyAndExtraCodeAndChangeTimesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RostarCASWebAPI.Models">
<checkConstraints xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models.TimeRegistration">
<d2p1:TimeRegistrationCheckConstraint>
<d2p1:ControlTestID>1</d2p1:ControlTestID>
<d2p1:Date>2025-12-26T06:36:23.1181661+01:00</d2p1:Date>
<d2p1:IsHard>true</d2p1:IsHard>
<d2p1:OverrulingLimit xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:double>1.1</d4p1:double>
<d4p1:double>2.1</d4p1:double>
</d2p1:OverrulingLimit>
</d2p1:TimeRegistrationCheckConstraint>
<d2p1:TimeRegistrationCheckConstraint>
<d2p1:ControlTestID>1</d2p1:ControlTestID>
<d2p1:Date>2025-12-26T06:36:23.1181661+01:00</d2p1:Date>
<d2p1:IsHard>true</d2p1:IsHard>
<d2p1:OverrulingLimit xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:double>1.1</d4p1:double>
<d4p1:double>2.1</d4p1:double>
</d2p1:OverrulingLimit>
</d2p1:TimeRegistrationCheckConstraint>
</checkConstraints>
<dutySchedulingDays xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models.TimeRegistration" i:nil="true" />
<extraCodeSchedulingDays xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models.TimeRegistration" i:nil="true" />
<register>true</register>
</DutyAndExtraCodeAndChangeTimesModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TimeRegistrationRegistrationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| SucceededExtraCodeSchedulingIds | Collection of integer |
None. |
|
| SucceededDutySchedulingIds | Collection of integer |
None. |
|
| AllSchedulingAreOk | boolean |
None. |
|
| CanSchedule | boolean |
None. |
|
| HardConstraints | TimeRegistrationConstraintMessageDC |
None. |
|
| SoftConstraints | TimeRegistrationConstraintMessageDC |
None. |
|
| Question | string |
None. |
|
| CheckConstraints | Collection of TimeRegistrationCheckConstraint |
None. |
Response Formats
application/json, text/json
Sample:
{
"SucceededExtraCodeSchedulingIds": [
1,
2
],
"SucceededDutySchedulingIds": [
1,
2
],
"AllSchedulingAreOk": true,
"CanSchedule": true,
"HardConstraints": {
"Header": "sample string 1",
"Messages": [
{
"Text": "sample string 1"
},
{
"Text": "sample string 1"
}
]
},
"SoftConstraints": {
"Header": "sample string 1",
"Messages": [
{
"Text": "sample string 1"
},
{
"Text": "sample string 1"
}
]
},
"Question": "sample string 3",
"CheckConstraints": [
{
"ControlTestID": 1,
"IsHard": true,
"OverrulingLimit": [
1.1,
2.1
],
"Date": "2025-12-26T06:36:23.1181661+01:00"
},
{
"ControlTestID": 1,
"IsHard": true,
"OverrulingLimit": [
1.1,
2.1
],
"Date": "2025-12-26T06:36:23.1181661+01:00"
}
]
}
application/xml, text/xml
Sample:
<TimeRegistrationRegistrationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models.TimeRegistration">
<AllSchedulingAreOk>true</AllSchedulingAreOk>
<CanSchedule>true</CanSchedule>
<CheckConstraints>
<TimeRegistrationCheckConstraint>
<ControlTestID>1</ControlTestID>
<Date>2025-12-26T06:36:23.1181661+01:00</Date>
<IsHard>true</IsHard>
<OverrulingLimit xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:double>1.1</d4p1:double>
<d4p1:double>2.1</d4p1:double>
</OverrulingLimit>
</TimeRegistrationCheckConstraint>
<TimeRegistrationCheckConstraint>
<ControlTestID>1</ControlTestID>
<Date>2025-12-26T06:36:23.1181661+01:00</Date>
<IsHard>true</IsHard>
<OverrulingLimit xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:double>1.1</d4p1:double>
<d4p1:double>2.1</d4p1:double>
</OverrulingLimit>
</TimeRegistrationCheckConstraint>
</CheckConstraints>
<HardConstraints>
<Header>sample string 1</Header>
<Messages>
<TimeRegistrationStringWrapper>
<Text>sample string 1</Text>
</TimeRegistrationStringWrapper>
<TimeRegistrationStringWrapper>
<Text>sample string 1</Text>
</TimeRegistrationStringWrapper>
</Messages>
</HardConstraints>
<Question>sample string 3</Question>
<SoftConstraints>
<Header>sample string 1</Header>
<Messages>
<TimeRegistrationStringWrapper>
<Text>sample string 1</Text>
</TimeRegistrationStringWrapper>
<TimeRegistrationStringWrapper>
<Text>sample string 1</Text>
</TimeRegistrationStringWrapper>
</Messages>
</SoftConstraints>
<SucceededDutySchedulingIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</SucceededDutySchedulingIds>
<SucceededExtraCodeSchedulingIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</SucceededExtraCodeSchedulingIds>
</TimeRegistrationRegistrationResult>