Marvia Developer Portal
DocsAPI ReferenceAbout
DocsAPI ReferenceAbout
  1. Locations
  • Users
    • Get a user
      GET
    • Delete a user
      DELETE
    • Update a user
      PATCH
    • List
      GET
    • Create a new user
      POST
  • Products
    • List products
      GET
  • Locations
    • Update a location
      PATCH
    • Get a location
      GET
    • Delete a location
      DELETE
    • List locations
      GET
    • Create a new location
      POST
  • Groups
    • Get a group
      GET
    • Update a group
      PATCH
    • Delete a group
      DELETE
    • List groups
      GET
    • Create a new group
      POST
  • Uploads
    • Initialize multipart upload
      POST
    • Complete multipart upload
      PUT
  • Assets
    • List assets
      GET
    • Create a new asset
      POST
    • Get asset by UUID
      GET
    • Update an asset
      PATCH
    • Search assets
      GET
  1. Locations

Update a location

Production
https://api-v2.getmarvia.com
Production
https://api-v2.getmarvia.com
PATCH
https://api-v2.getmarvia.com
/v1/locations/{uuid}
Required Permission: update:locations
This endpoint requires an API key with the update:locations permission. Make sure your token was created with this permission during token creation.

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Success
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api-v2.getmarvia.com/v1/locations/' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "identifier": "string",
    "address": {
        "addressLine1": "string",
        "addressLine2": "string",
        "attentionOf": "string",
        "city": "string",
        "zone": "string",
        "countryCode": "string",
        "zipcode": "string"
    },
    "legal": {
        "address": {
            "addressLine1": "string",
            "addressLine2": "string",
            "attentionOf": "string",
            "city": "string",
            "zone": "string",
            "countryCode": "string",
            "zipcode": "string"
        }
    },
    "invoice": {
        "name": "string",
        "email": "string",
        "address": {
            "addressLine1": "string",
            "addressLine2": "string",
            "attentionOf": "string",
            "city": "string",
            "zone": "string",
            "countryCode": "string",
            "zipcode": "string"
        }
    },
    "contact": {
        "email": "string",
        "website": "string",
        "phone": "string",
        "mobile": "string",
        "firstName": "string"
    },
    "coordinates": {
        "latitude": 0,
        "longitude": 0
    },
    "createdAt": "string",
    "editedAt": "string"
}'
Response Response Example
200 - Example 1
{
    "_tag": "Success",
    "data": {
        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
    }
}
Modified at 2025-10-01 06:18:21
Previous
List products
Next
Get a location
Built with