POST States
Creates a new state.
Request Information
URI Parameters
None.
Body Parameters
The state to create. StateId should not be filled in.
State| Name | Description | Type | Additional information |
|---|---|---|---|
| StateId | globally unique identifier |
None. |
|
| Asset | Asset |
None. |
|
| EffectiveDate | date |
None. |
|
| StateType | StateType |
None. |
|
| SourceSystemId | string |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| CreateDate | date |
None. |
|
| CreateUser | string |
None. |
|
| LastModifiedDate | date |
None. |
|
| LastModifiedUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"StateId": "51503645-c413-40b7-8b76-fb67728d31b1",
"Asset": {
"AssetId": "2ed1ab74-1115-4cca-9b66-d3dce7a0ada3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "ea817e72-6b45-4e2b-8526-dceb9777957a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "3e92b55d-2e3f-4702-b561-c78347d6ea1e",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "de0cce7a-4531-47de-b594-3ca2747a316a",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-16T10:46:53.9961762-08:00",
"MeasurementValueNeededDate": "2026-11-16T10:46:53.9961762-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "f6ef27dd-b6bd-4ec8-886c-91a4ff94e529",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "cf365c32-0351-4989-9f74-6e6a8f262843",
"EffectiveDate": "2026-11-16T10:46:53.9961762-08:00",
"StatusType": {
"StatusTypeId": "59454dce-4bbe-4581-8f86-8f4b148e6bd8",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "ea817e72-6b45-4e2b-8526-dceb9777957a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "3e92b55d-2e3f-4702-b561-c78347d6ea1e",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "cdf328fe-5dc0-44a2-accf-42ce7763fcbc",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2ee4622f-09aa-44f4-91eb-2fe786f16604",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "87c4f536-bcc5-44bb-9ea9-8e2d1d0c2cd4",
"EffectiveDate": "2026-11-16T10:46:53.9961762-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "c9d0024c-7e85-4de1-a1a4-29638d96aed8",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ee75688a-713d-408f-a1d6-d75915005b5c",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "204c7855-7cef-48d6-bf3e-4687b16d2058",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-16T10:46:53.9961762-08:00",
"MeasurementValueNeededDate": "2026-11-16T10:46:53.9961762-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "a618ae5d-9f06-4b05-a650-db108f55fe99",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-11-16T10:46:53.9961762-08:00",
"StateType": {
"StateTypeId": "dde23dd0-9998-4f54-b81a-162e5a34b844",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "ea817e72-6b45-4e2b-8526-dceb9777957a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "3e92b55d-2e3f-4702-b561-c78347d6ea1e",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "25560c91-7c2e-48cd-8c4d-2e92c79ee383",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "21916bf9-7896-4aa2-bd94-1e28bf9f5293",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 4"
}
Response Information
Resource Description
On success, the created state.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | State |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"StateId": "78bd6245-534f-4b0a-ab26-018f186641e9",
"Asset": {
"AssetId": "1eb8a362-6abe-4d13-b182-adc2b658d429",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b2a9c706-19e9-4725-9d59-a5ad3763bc84",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "10f4e8e6-f8e8-49d0-8536-2aff2af6f210",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "f148e195-765b-4e29-878b-2fdaa284128b",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-16T10:46:53.9961762-08:00",
"MeasurementValueNeededDate": "2026-11-16T10:46:53.9961762-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "6b6830be-ec8f-4623-9328-8ded01d6b15d",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "cf775fc2-428e-424d-82d0-ec724e7a422b",
"EffectiveDate": "2026-11-16T10:46:53.9961762-08:00",
"StatusType": {
"StatusTypeId": "33a221a2-ac10-46e3-beee-3a00db7f177b",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "b2a9c706-19e9-4725-9d59-a5ad3763bc84",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "10f4e8e6-f8e8-49d0-8536-2aff2af6f210",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "c2a3a3ca-cf45-4c82-8fdf-008dcabf5222",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "37e860c7-7eb9-457c-92d5-fda365734b6b",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "8be6917a-7950-453e-a42b-f271b3aa0bf0",
"EffectiveDate": "2026-11-16T10:46:53.9961762-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "25824fb3-c00d-45ef-96d8-7780af1b7ede",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ffa8f7a9-e3c5-4ce2-8143-148667156385",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e298e85a-4a85-4f90-a95e-6a00210c871c",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-16T10:46:53.9961762-08:00",
"MeasurementValueNeededDate": "2026-11-16T10:46:53.9961762-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "85a19d8a-da9b-4e24-be49-40600cbb80ca",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-11-16T10:46:53.9961762-08:00",
"StateType": {
"StateTypeId": "c80e1c73-8935-4041-aafc-823042cffb47",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "b2a9c706-19e9-4725-9d59-a5ad3763bc84",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "10f4e8e6-f8e8-49d0-8536-2aff2af6f210",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "42f265e1-1541-45aa-be09-271a091d5b8e",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d3db9a97-9107-45f8-8245-456f3a95d954",
"CreateDate": "2026-11-16T10:46:53.9961762-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-16T10:46:53.9961762-08:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}