Update Organization
client.organizations.update(stringorganizationID, OrganizationUpdateParams { name } body, RequestOptionsoptions?): Organization { id, name, created_at, 2 more }
PUT/api/v2/organizations/{organization_id}
Update Organization
import LlamaCloudAdmin from '@llamaindex/llama-cloud-admin';
const client = new LlamaCloudAdmin({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
const organization = await client.organizations.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
name: 'x',
});
console.log(organization.id);{
"id": "id",
"name": "name",
"created_at": "2019-12-27T18:11:19.117Z",
"metadata": {
"foo": "bar"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "id",
"name": "name",
"created_at": "2019-12-27T18:11:19.117Z",
"metadata": {
"foo": "bar"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}