POST States
Creates a new state.
Request Information
URI Parameters
None.
Body Parameters
The state to create. StateId should not be filled in.
StateName | 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": "1243ad4a-3b09-4491-b86f-45798f367af7", "Asset": { "AssetId": "5197bd83-1f19-4508-87ce-431905e03d2c", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "68491d71-a20a-49d7-a663-11f54d0b519e", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "a12f1911-937c-4a96-bf59-a7534dc423d8", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "81165057-1676-437a-9c8a-fbb70096c0c8", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-03-09T08:45:56.6745447-07:00", "MeasurementValueNeededDate": "2025-03-09T08:45:56.6745447-07:00", "SourceSystemId": "sample string 3", "CompanyId": "90f9e605-b6e5-46b8-ba8b-ef82e59394ec", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "8e4c3799-1925-43e3-8577-35fbe94acd45", "EffectiveDate": "2025-03-09T08:45:56.6745447-07:00", "StatusType": { "StatusTypeId": "0a5aea58-3390-4d7f-a421-7b391bd49c6b", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "68491d71-a20a-49d7-a663-11f54d0b519e", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "a12f1911-937c-4a96-bf59-a7534dc423d8", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "455f6e57-bac2-4e8c-b38f-b024b79b91a3", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "71a65ecb-14f7-4199-b519-8dcc7151649b", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "6f99a90a-b928-41e4-88c6-8aef5da0347b", "EffectiveDate": "2025-03-09T08:45:56.6745447-07:00", "WellPurposeType": { "WellPurposeTypeId": "e5f30dc0-7dbc-4013-9659-bbd0471be06f", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "1ae4c47c-0f6b-40eb-af22-9b5bfeb3334d", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "9d2ee524-7c94-4886-af14-eb53a8ee4a64", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-03-09T08:45:56.6745447-07:00", "MeasurementValueNeededDate": "2025-03-09T08:45:56.6745447-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "f40f4e09-dbf5-48da-bdca-bf8e5c932c28", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-03-09T08:45:56.6745447-07:00", "StateType": { "StateTypeId": "ac0737e1-e8e9-4efc-8bdf-abe622bdad87", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "68491d71-a20a-49d7-a663-11f54d0b519e", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "a12f1911-937c-4a96-bf59-a7534dc423d8", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "4fd3ddd6-5c18-40e8-ae21-36a5a34db748", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "5fbddd98-0226-445d-8713-cb30ae4a0d2b", "CreateDate": "2025-03-09T08:45:56.6745447-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:45:56.6745447-07: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": "25cf9090-53a2-4543-8fe2-1d874d279390", "Asset": { "AssetId": "535477bb-da75-4c9e-848c-d1a0791fd409", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f727ec0a-960f-4541-bfc6-29c00593af97", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ed780b61-fb28-47e8-8eba-a14cd663e763", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "4de2d687-a414-4767-880b-8ddf21e70e26", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-03-09T08:45:56.6900968-07:00", "MeasurementValueNeededDate": "2025-03-09T08:45:56.6900968-07:00", "SourceSystemId": "sample string 3", "CompanyId": "6923b7a7-4d9e-4889-8abc-55950ded0b98", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "edcd7876-7b4a-4293-ae0f-63ffa73b658e", "EffectiveDate": "2025-03-09T08:45:56.6900968-07:00", "StatusType": { "StatusTypeId": "6373dd0e-154c-4f96-8c38-5bbf97ecb3f5", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "f727ec0a-960f-4541-bfc6-29c00593af97", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ed780b61-fb28-47e8-8eba-a14cd663e763", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "db64aa6c-0f17-48f2-a73a-c806305c5527", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "debc7001-cecf-47ef-9f47-caefc10f37b2", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "ac761cae-accc-40c5-ac3b-22f2764c249a", "EffectiveDate": "2025-03-09T08:45:56.6900968-07:00", "WellPurposeType": { "WellPurposeTypeId": "221372e4-482c-4cf8-b61b-c9487cfc6aaf", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "79bfdc47-3fbf-47eb-a4e2-dd4d9d5182a1", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "1c2bfe14-5ce7-46dd-a65e-db4dcb77cb03", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-03-09T08:45:56.6900968-07:00", "MeasurementValueNeededDate": "2025-03-09T08:45:56.6900968-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "cbb84016-ef87-4c69-b381-31a32ae8c3eb", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-03-09T08:45:56.6900968-07:00", "StateType": { "StateTypeId": "7350cafd-dba6-4bfc-a2b4-468dfa05f280", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "f727ec0a-960f-4541-bfc6-29c00593af97", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ed780b61-fb28-47e8-8eba-a14cd663e763", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "27bae4a5-059d-4ea7-898e-12ab6c73e8a7", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "67224c4f-6fde-4532-8971-078b64fbbfa6", "CreateDate": "2025-03-09T08:45:56.6900968-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:45:56.6900968-07:00", "LastModifiedUser": "sample string 4" }, "Total": 1, "Message": "sample string 1" }