Aggiornamento degli attributi di un’unità organizzativa

Ultimo aggiornamento: 2023-05-24
  • Argomenti:
  • API
    Visualizza ulteriori informazioni su questo argomento
  • Creato per:
  • Experienced
    Developer
  1. Eseguire una richiesta GET su orgUnitBase per recuperare l'unità organizzativa PKey.
  2. Esegui una richiesta PATCH sull’unità organizzativa, con gli attributi da aggiornare nel payload.

Richiesta di esempio

Recupera l’elenco delle unità organizzative.

-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/ \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'

Restituisce tutte le unità organizzative. Recuperate la PKey dell'unità desiderata.

{
  "PKey": "<PKEY>",
  "created": "2019-04-02 22:36:13.252Z",
  "desc": "",
  "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<PKEY>",
  "label": "Brand 4",
  "lastModified": "2019-04-03 07:34:56.579Z",
  "name": "brand4",
  "parentTitle": "All (all)",
  "title": "Brand 4 (brand1)"
},

Esegui una richiesta PATCH sull’unità organizzativa, con gli attributi da aggiornare nel payload.

-X PATCH https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
-i
-d {
-d "label":"brand1",
-d "name":"brand1"
-d }

In questa pagina