AI ready
Open in Claude (opens in a new tab)View as Markdown

Update a service

PATCH/services/{serviceId}

Use this for your own bookkeeping on a service. It does not change the server.

Token
Bearer API token: cxk_live_ followed by 46 letters and digits
Scope
services:write
Header
Authorization: Bearer $CLOUDUXE_API_KEY

How tokens and scopes work: Authentication and scopes.

  • serviceIdstring (uuid)Required

    The service's id.

  • Clouduxe-VersionstringOptional

    The API version to use, such as 2026-12-01. Omit it to use your token's version.

    pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
  • Idempotency-KeystringRequired

    A unique key for this logical request, 1 to 128 characters of letters, digits, underscore, dot, colon or hyphen; a UUID is best. Retrying with the same key is safe: the change happens once and the retry gets the same answer. Keys are kept 48 hours.

    pattern ^[A-Za-z0-9_.:-]{1,128}$

Body

Required
  • labelstring or nullOptional

    Your label for the service, 1 to 253 characters, or null to clear it.

    min length 1, max length 253
  • referencestring or nullOptional

    Your own identifier for this object, such as your client's id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.

    min length 1, max length 100
  • metadataobjectOptional

    Metadata keys to set (a string) or remove (null). Keys you leave out are kept.

    max 20 keys

Returns

200OK The service.

  • objectstringRequired

    The object's type. Always "service".

  • idstring (uuid)Required

    The service's id.

  • typestringRequired

    vps, dedicated or proxy.

    One ofvpsdedicatedproxy
  • statusstringRequired

    pending (paid and waiting for set-up to start), provisioning, active, suspended, failed (set-up failed; staff are on it), terminating (deletion scheduled at deletesAt) or terminated.

    One ofpendingprovisioningactivesuspendedfailedterminatingterminated
  • suspensionReasonstring or nullRequired

    Why the service is suspended: overdue (an unpaid invoice) or other (contact support). Null unless suspended.

    One ofoverdueother
  • deletesAtstring (date-time) or nullRequired

    When a terminating service's server will be deleted, or null.

  • planIdstringRequired

    The plan's id.

  • planNamestring or nullRequired

    The plan's name.

  • regionstring or nullRequired

    The region, or null for a proxy.

    One ofmumbaisingaporelimburg
  • labelstring or nullRequired

    Your label for the service.

    max length 253
  • referencestring or nullRequired

    Your own identifier for this object, such as your client's id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.

    min length 1, max length 100
  • metadataobjectRequired

    Your own key-value data on this object.

    max 20 keys
  • firewallAvailablebooleanRequired

    True when the service has a Shield firewall you can manage through the firewall operations.

  • billingobject or nullRequired

    Billing details, for the account owner's tokens. Null for a delegate's token.

    Show 6 child attributesHide 6 child attributes
    • cycleMonthsintegerRequired

      The billing cycle in months.

    • priceobject or nullRequired

      The renewal price per cycle, excluding GST, locked when the service was bought. Null when it cannot be read.

      Show 2 child attributesHide 2 child attributes
      • amountintegerRequired

        The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

        min -9007199254740991, max 9007199254740991
      • currencystringRequired

        The ISO 4217 currency code, upper case.

        pattern ^[A-Z]{3}$
    • currentPeriodStartstring (date)Required

      The first day of the current period, a UTC calendar day.

    • paidThroughstring (date)Required

      The last day paid for, a UTC calendar day. The renewal invoice for the next period is issued before it.

    • cancelAtPeriodEndbooleanRequired

      True when the service will end on paidThrough instead of renewing.

    • endsOnstring (date) or nullRequired

      The day the service ends, when cancelAtPeriodEnd is true; otherwise null.

  • serverobject or nullRequired

    For vps and dedicated; null for proxy.

    Show 8 child attributesHide 8 child attributes
    • powerStatestringRequired

      running, stopped, building (being built or reinstalled), suspended, missing (the server cannot be found; staff are notified) or unknown.

      One ofrunningstoppedbuildingsuspendedmissingunknown
    • hostnamestring or nullRequired

      The hostname you set at order or reinstall.

    • ipv4array of stringRequired

      The server's IPv4 addresses, primary first.

    • ipv6array of stringRequired

      The server's IPv6 addresses.

    • imageobject or nullRequired

      The installed image, or null when not known.

      Show 4 child attributesHide 4 child attributes
      • objectstringRequired

        The object's type. Always "image".

      • idstringRequired

        The image's id. Pass it as imageId.

      • namestringRequired

        The image's name, for showing to people.

      • familystringRequired

        linux or windows. A root password reset sets the password of Administrator on windows and of root otherwise.

        One oflinuxwindows
    • resourcesobject or nullRequired

      The server's resources, or null when not known.

      Show 4 child attributesHide 4 child attributes
      • cpuCoresinteger or nullRequired

        Virtual CPU cores, or null when not known.

      • memoryMbinteger or nullRequired

        Memory in MiB, or null.

      • diskGbinteger or nullRequired

        Disk in GB, or null.

      • trafficGbinteger or nullRequired

        Monthly traffic allowance in GB, or null for unmetered or unknown.

    • statusUpdatedAtstring (date-time) or nullRequired

      When this state was read.

    • stalebooleanRequired

      True when the state is more than 5 minutes old.

  • proxyobject or nullRequired

    For proxy; null otherwise.

    Show 2 child attributesHide 2 child attributes
    • profilestringRequired

      The protection profile.

    • portsarray of ProxyPortRequired

      The protected ports.

      Show 3 child attributesHide 3 child attributes
      • protocolstringRequired

        tcp or udp.

        One oftcpudp
      • portStartintegerRequired

        The first port.

        min 1, max 65535
      • portEndintegerRequired

        The last port, equal to portStart for one port.

        min 1, max 65535
  • createdAtstring (date-time)Required

    When the service was created.

  • livemodebooleanRequired

    True for objects of your live account.

Every response

  • 200OKThe service.
  • 400Bad requestThe request is not valid. Codes: metadata_invalid, version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.
  • 401UnauthorizedAuthentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.
  • 403ForbiddenThe token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.
  • 404Not foundNot found. Codes: not_found.
  • 409ConflictThe request conflicts with the object's current state. Codes: idempotency_in_progress.
  • 413Too largeThe request body is too large. Codes: request_too_large.
  • 415Unsupported media typeUnsupported media type. Codes: unsupported_media_type.
  • 422UnprocessableThe request is well formed but cannot be carried out. Codes: idempotency_mismatch.
  • 423The service is locked. Codes: service_locked.
  • 429Too many requestsA rate limit was reached. Codes: rate_limited.
  • 500Server errorUnexpected error. Codes: internal_error.
  • 503UnavailableTemporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.

Updated 5 November 2026. Generated from the API contract.

Need a server, or a hand with one?

Pick a plan to deploy a server, or open a ticket in the panel. Support runs 24/7/365.