# Mutations

If a write key is enabled on the requested Bucket, the parameter write_key will need to be present for Bucket content mutations.

# addObject

Add an Object to your Bucket.

addObject(bucket_slug, input)

# Try it

Full screen  

# editObject

Edit an Object in your Bucket.

editObject(bucket_slug, input)

# Try it

Full screen  

# deleteObject

Delete an Object in your Bucket.

deleteObject(bucket_slug, input)

# Try it

Full screen  

# addObjectRevision

Add a Revision to your Object.

addObjectRevision(bucket_slug, object_slug, input)

# Try it

Full screen  

# addObjectType

Add an Object Type to your Bucket.

addObjectType(bucket_slug, input)

# Try it

Full screen  

# editObjectType

Edit an Object Type in your Bucket.

editObjectType(bucket_slug)

# Try it

Full screen  

# deleteObjectType

Delete an Object Type in your Bucket.

deleteObjectType(bucket_slug, type_slug)

# Try it

Full screen  

# addBucket

Add a Bucket to your user account.

addBucket(input)

Requires Authorization in HTTP Header. Find token in Account Settings or using the getAccessToken method.

# Try it

Full screen  

# deleteBucket

Delete a Bucket from your user account.

deleteBucket(bucket_id)

Requires Authorization in HTTP Header. Find token in Account Settings or using the getAccessToken method.

# Try it

Full screen  

# importBucket

Import a Bucket on your user account.

importBucket(bucket_id, title, object_types, objects, media, media_folders, webhooks, extensions)

Requires Authorization in HTTP Header. Find token in Account Settings or using the getAccessToken method.

# Try it

Full screen  

# addUser

Add a user to your Bucket.

addUser(bucket_slug, input)

Requires Authorization in HTTP Header. Find token in Account Settings or using the getAccessToken method.

# Try it

Full screen  

# addWebhook

Add a Webhook to your Bucket.

addWebhook(input)

Requires Authorization in HTTP Header. Find token in Account Settings or using the getAccessToken method.

# Try it

Full screen  

# deleteWebhook

Delete a Webhook in your Bucket.

deleteWebhook(bucket_slug, webhook_id)

Requires Authorization in HTTP Header. Find token in Account Settings or using the getAccessToken method.

# Try it

Full screen  

# addMedia

Coming soon!

addMedia(bucket_slug, input)

# deleteMedia

Delete Media from your Bucket.

deleteMedia(bucket_slug, media_id)

# Try it

Full screen  

# addExtension

Coming soon!

addExtension(bucket_slug, input)

# deleteExtension

Delete an Extension in your Bucket.

deleteExtension(bucket_slug, extension_id)

Requires Authorization in HTTP Header. Find token in Account Settings or using the getAccessToken method.

# Try it

Full screen