州/省

使用州/省代碼來指定公用事業營運的州/省。您可以指定一或多個州/省作為所屬國家的下階。

下表提供有關您需要完成之任務的其他明細。

任務 組態 註釋
新增所有需要的州/省記錄

POST /api/CXIPlatformService/v1/CXIReferenceEntity/country/{id}/child/state

此處的 {id} 是應新增州/省的國家。

範例:

POST https://<hostname>/api/CXIPlatformService/v1/CXIReferenceEntity/country/US/child/state

{

"items": [

{

"operation": "create",

"data": {

"id": "Alabama",

"faValue": "Alabama",

"cisValue": "AL"

}

},         {

"operation": "create",

"data": {

"id": "Alaska",

"faValue": "Alaska",

"cisValue": "AK"

}

}

]

}
Oracle 建議在要求中使用相同的 'id' 和 'faValue' 值。
編輯州/省記錄

POST /CXIPlatformService/v1/CXIReferenceEntity/country/{id}/child/state

此處的 {id} 是與您正在編輯之州/省關聯的國家。

範例:

POST https://<hostname>/api/CXIPlatformService/v1/CXIReferenceEntity/country/US/child/state

{

"items": [

{

"operation": "update",

"data": {

"id": "Alabama",

"faValue": "Alabama",

"cisValue": "AL"

}

}

]

}
將多筆州/省記錄新增至要求中的「項目」列表,即可同時編輯多筆州/省記錄。
刪除州/省記錄

POST /CXIPlatformService/v1/CXIReferenceEntity/country/{id}/child/state

此處的 {id} 是與您正在刪除之州/省關聯的國家。

範例:

POST https://<hostname>/api/CXIPlatformService/v1/CXIReferenceEntity/country/US/child/state

{

"items": [

{

"operation": "delete",

"data": {

"id": "Alabama"

}

}

]

}
將多筆州/省記錄新增至要求中的「項目」列表,即可同時刪除多州/省記錄。
提取州/省記錄

GET /utilitiesAdmin/v1/country/{id}/child/state

此處的 {id} 是與正在提取之州/省關聯的國家 ID。

範例:

GET https://<hostname>/api/utilitiesAdmin/v1/country/US/child/state

可以使用下列方式提取特定州/省記錄:

GET /utilitiesAdmin/v1/country/{id}/child/state/{childid}

範例:

GET https://<hostname>/api/utilitiesAdmin/v1/country/US/child/state/Alabama