Zapmail
latest
  • latest
  • v1
  1. workspaces
Zapmail
latest
  • latest
  • v1
  • Zapmail Docs
  • users
    • Retrieve User Details
      GET
  • workspaces
    • Retrieve all workspaces
      GET
    • Create new workspace
      POST
    • Update workspace
      PUT
  • billing
    • Add Billing Details
      POST
    • Update Billing Details
      PUT
  • mailbox
    • Retrieve All Mailboxes
      GET
    • Get Mailbox Details by ID
      GET
    • Assign New Mailboxes to Domains
      POST
    • Update mailbox
      PUT
    • Remove mailboxes on next renewal
      PUT
    • Get Authenticator code
      GET
    • Remove Mailboxes Instantly
      POST
  • payments & wallet
    • Add balance to wallet
      POST
    • Get wallet balance
      GET
    • Enable auto recharge
      POST
  • export
    • Export mailboxes
      POST
    • Add third party account details
      POST
    • Update third party account details
      PUT
  • subscriptions
    • Get all subscriptions
      GET
    • Cancel subscription
      POST
    • Upgrade existing subscription
      POST
  • domains
    • Retrieve All Domains
    • List Assignable Domains
    • Add DMARC record
    • Add Domain forwarding
    • Get Name servers to connect domain
    • Verify Name Server Propagation
    • Connect Domain with Zapmail
    • Enable email forwarding
    • Remove email forwarding
    • Enable catch all emails
    • Remove catch all emails
    • Check DNS records
    • Remove unused domains
    • Get available domains for registration
    • Get domains purchase payment link
    • Get domain connection requests
    • Remove domain connection requests
    • Connect Domain with Zapmail (New)
    • Add Google Client ID to Domain
    • Get availability of multiple domain names.
  • dns
    • Get dns records
    • Add dns records
    • Update dns records
    • Delete dns records
  1. workspaces

Update workspace

PUT
/v2/workspaces
Use this endpoint to update an existing workspace’s name. Make sure the workspace ID is correct and that the new name does not conflict with another workspace in your account.

Request

Header Params

Body Params application/json

Example
{
    "id": "b9085239-6bb1-479b-8a30-271f7d6f904e",
    "name": "New Workspace"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.zapmail.ai/api/v2/workspaces' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'x-service-provider;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "b9085239-6bb1-479b-8a30-271f7d6f904e",
    "name": "New Workspace"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "status": 200,
    "message": "Workspace updated successfully",
    "data": {
        "id": "b9085239-6bb1-479b-8a30-271f7d6f904e",
        "userId": "fbf34af0-be3b-4add-bd97-462e2471f65d",
        "name": "New Workspace",
        "createdAt": "2024-08-09T06:08:47.459Z",
        "updatedAt": "2024-08-09T06:17:20.331Z",
        "deletedAt": null
    }
}
🟠404Not Found
🟠409Conflict
Modified at 2025-10-14 09:20:42
Previous
Create new workspace
Next
Add Billing Details
Built with