Перейти к основному содержанию
POST
/
moscowroleplay
/
civops
/
businesses
curl --request POST \
  --url https://api.erlcrussia.xyz/v2/moscowroleplay/civops/businesses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "760966468715937814",
  "username": "ttunku_pal",
  "name": "Roma Aeterna",
  "form": "ООО",
  "channelId": "1432651696210841760"
}
'
{
  "success": true,
  "requestId": "req_123",
  "status": "pending",
  "message": "Request created, awaiting approval"
}

Авторизации

Authorization
string
header
обязательно

API ключ для доступа к эндпоинтам Гражданских Операций.

Передается в заголовке Authorization: Bearer <ключ>.

ОБЯЗАТЕЛЕН ДЛЯ ВСЕХ ЭНДПОИНТОВ ГРАЖДАНСКИХ ОПЕРАЦИЙ (кроме /health).

Параметры запроса

action
enum<string>
обязательно

Тип операции.

Доступные опции:
request,
approve,
cancelRequest,
create,
delete,
addMoney,
removeMoney,
withdraw,
transfer,
addEmployee,
removeEmployee,
addProduct,
removeProduct,
buyProduct,
returnMoney

Тело

application/json

The body is of type object.

Ответ

Операция успешно выполнена.

The response is of type object.