Edit Venue
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
PUT
/{{venue}}/16
Last modified:2025-04-14 01:04:52
Key | Value | Description | Type |
---|---|---|---|
apikey | 5f28583f26a1a | API key for authentication; contact support to obtain. Required | string |
apiconnection | appmobile | Connection type; contact support to obtain. Required | string |
secure-business-key | 4765066450c0bd66325.48403130 | Business-specific key; contact support for valid values. Required | string |
lang | ar | Language preference: ar for Arabic, en for English. Optional | string |
userToken | 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9 | (Get user token from https://testaccounts.vodoerp.com/api/login or https://accounts.vodoerp.com/api/login ) Required | string |
Key | Value | Description | Type |
---|---|---|---|
name_en | Updated 1 Venue | English name of the venue. Optional | string |
name_ar | قاعة 1 محدثة | Arabic name of the venue. Optional | string |
width | 100 | Venue width. Optional | integer |
height | 200 | Venue height. Optional | integer |
address | 123 New Address | Venue address. Optional | string |
phone | 1234567890 | Contact phone number. Optional | string |
email | example@domain.com | Contact email. Optional | string |
website | https://example.com | Venue website. Optional | string |
capacity | 500 | Venue capacity. Optional | integer |
latitude | 25.276987 | Latitude coordinate. Optional | float |
longitude | 55.296249 | Longitude coordinate. Optional | float |
categories | [110] | List of category IDs. Optional | array |
attributes | (complex object) | Array of attributes with gates. Optional | array |
attributes[].id | 133 | Attribute ID for existing attributes. Optional | integer |
attributes[].name_en | Updated Attribute | English attribute name. Optional | string |
attributes[].name_ar | Updated Attribute | Arabic attribute name. Optional | string |
attributes[].gate | (array) | Array of gates for the attribute. Optional | array |
attributes[].gate[].id | 162 | Gate ID for existing gates. Optional | integer |
attributes[].gate[].name_en | Updated Gate 1 | English gate name. Optional | string |
attributes[].gate[].name_ar | Updated Gate 1 | Arabic gate name. Optional | string |
attributes[].gate[].type | 1 | Gate type: 1 or 2 . Optional | integer |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'https://www.testecommerce.vodoerp.com/{{venue}}/16' \
--header 'apikey: 5f28583f26a1a' \
--header 'apiconnection: appmobile' \
--header 'secure-business-key: 4765066450c0bd66325.48403130' \
--header 'Accept-Language: ar' \
--header 'userToken: 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9' \
--header 'Content-Type: application/json' \
--data-raw '{
"name_en": "Updated 1 Venue",
"name_ar": "قاعة 1 محدثة",
"width": 100,
"height": 200,
"address": "123 New Address",
"phone": "1234567890",
"email": "example@domain.com",
"website": "https://example.com",
// "status": "on",
"capacity": 500,
"latitude": 25.276987,
"longitude": 55.296249,
"categories": [110],
"attributes": [
{
"id": 133,
"name_en": "Updated Attribute",
"name_ar": "Updated Attribute",
"gate": [
{
"id": 162,
"name_en": "Updated Gate 1",
"name_ar": "Updated Gate 1",
"type": 1
// "catalog": [
// 1606
// ]
},
{
"name_en": "New Gate 2",
"name_ar": "New Gate 2",
"type": 2
// "catalog": [
// 22373,
// 22367,
// 22373
// ]
}
]
},
{
"name_en": "New Attribute",
"name_ar": "New Attribute",
"gate": [
{
"name_en": "New Gate 1",
"name_ar": "New Gate 1",
"type": 1
// "catalog": [
// 22373,
// 22367,
// 22373
// ]
},
{
"name_en": "New Gate 2",
"name_ar": "New Gate 2",
"type": 2
// "catalog": [
// 22373,
// 22373,
// 22367
// ]
}
]
}
]
}'
Response Response Example
{"status":true,"message":"تم تعديل المكان بنجاح!","data":{"id":40,"uuid":"8dc42399-f6f8-4470-b653-43ce88ec9737","business_id":"259","name_en":"Updated 1 Venue","name_ar":"قاعة 1 محدثة","width":100,"height":200,"longitude":55.296249,"latitude":25.276987,"status":"0","created_at":"2025-04-15T07:22:18.000000Z","updated_at":"2025-04-15T07:24:00.000000Z","capacity":500,"address":"123 New Address","phone":"1234567890","email":"example@domain.com","website":"https://example.com"}}
Request
Header Params
apikey
string
required
Example:
5f28583f26a1a
apiconnection
string
required
Example:
appmobile
secure-business-key
string
required
728106399db2b289783.89154521
2680667168f2f8a68f6.12561200
140356399db2b2c32f0.25237063
96701678e330f31f768.22400604
14807664478836358b0.31329842
Example:
4765066450c0bd66325.48403130
Accept-Language
string
required
Example:
ar
userToken
string
required
https://testaccounts.vodoerp.com/api/login
or
https://accounts.vodoerp.com/api/login
Example:
09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9
Body Params application/json