DocsAPI ReferenceAbout
DocsAPI ReferenceAbout
  1. locations
  • locations
    • List locations
      GET
    • Create a location
      POST
    • Get a location
      GET
    • Update a location by UUID
      PATCH
    • Delete a location
      DELETE
  • users
    • List users
      GET
    • Create a new user
      POST
    • Get a user
      GET
    • Delete a user
      DELETE
  • groups
    • List groups
      GET
    • Create a new group
      POST
    • Get a group
      GET
    • Update a group
      PATCH
    • Delete a group
      DELETE
  • assets
    • List assets
      GET
    • Get single asset
      GET
  • products
    • List products
      GET
  1. locations

Create a location

Production
https://api-v2.getmarvia.com
Production
https://api-v2.getmarvia.com
POST
https://api-v2.getmarvia.com
/v1/locations
Create a new location
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-v2.getmarvia.com/v1/locations' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "identifier": "string",
    "address": {
        "addressLine1": "Johan Huizingalaan 400",
        "addressLine2": "string",
        "attentionOf": "string",
        "city": "Amsterdam",
        "zone": "NH",
        "countryCode": "NL",
        "zipcode": "1066 JS"
    },
    "legal": {
        "address": {
            "addressLine1": "Johan Huizingalaan 400",
            "addressLine2": "string",
            "attentionOf": "string",
            "city": "Amsterdam",
            "zone": "NH",
            "countryCode": "NL",
            "zipcode": "1066 JS"
        }
    },
    "invoice": {
        "name": "string",
        "email": "user@example.com",
        "address": {
            "addressLine1": "Johan Huizingalaan 400",
            "addressLine2": "string",
            "attentionOf": "string",
            "city": "Amsterdam",
            "zone": "NH",
            "countryCode": "NL",
            "zipcode": "1066 JS"
        }
    },
    "contact": {
        "email": "user@example.com",
        "website": "https://www.getmarvia.com",
        "phone": "string",
        "mobile": "string",
        "firstName": "string"
    },
    "coordinates": {
        "latitude": 52.3401102568276,
        "longitude": 4.826280931111181
    }
}'
Response Response Example
201 - Example 1
{
    "data": {
        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
        "name": "string"
    }
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Location created successfully
Body

🟠400Bad Request
🔴500Server Error
Modified at 2025-07-25 04:54:55
Previous
List locations
Next
Get a location
Built with