Update an organization

Request

PATCH /organizations/{id}
curl 'https://businessapi.badges.xyz/organizations/1b9c9c78-1a4c-4d86-9e50-c1fcb3adbc05' \
-u E23d1aN95aAtnE3w9QmQyGjBRzu4...
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "My first test customer",
}'

Returns

Returns the customer/organization object if the update succeeded. Returns an error if update parameters are invalid.

RESPONSE
{
  "data": {
    "id": "1b9c9c78-1a4c-4d86-9e50-c1fcb3adbc05",
    "name": "My first test customer",
    "wallet_address": "0xd10D7A5991B99Ba5F51DcAfdDA780Ed3a3Def20d",
    "logo": {
      "large": "https://cdn.badges.xyz/api/organizations/images/1952ba5c89bf5ef69e69d9bac1decb0d855e1c260599f939ec11e18f32049fef_large.png",
      "medium": "https://cdn.badges.xyz/api/organizations/images/1952ba5c89bf5ef69e69d9bac1decb0d855e1c260599f939ec11e18f32049fef_medium.png",
      "small": "https://cdn.badges.xyz/api//organizations/images/1952ba5c89bf5ef69e69d9bac1decb0d855e1c260599f939ec11e18f32049fef_small.png",
      "thumb": "https://cdn.badges.xyz/api/organizations/images/1952ba5c89bf5ef69e69d9bac1decb0d855e1c260599f939ec11e18f32049fef_thumb.png",
      "original": "https://cdn.badges.xyz/api/organizations/images/1952ba5c89bf5ef69e69d9bac1decb0d855e1c260599f939ec11e18f32049fef.png"
    },
    "parent_id": "cba48375-6d91-4f35-9445-265e8b2107cc",
    "external_id": "1873781619",
    "is_active": true,
    "created_at": "2023-04-30T23:50:17.000Z"
  }
}

Parameters


name string
Name for the object.


logo file
File of the logo for the object.


parent_id uuid
Parent object id for the object.


external_id string
Custom External id for the object.