cURL
curl --request POST \ --url https://api.example.com/api/stores \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data ' { "name": "<string>", "description": "<string>", "organizationId": "<string>", "active": true } '
{ "id": "<string>", "userId": "<string>", "name": "<string>", "active": true, "createdAt": "<string>", "updatedAt": "<string>", "organizationId": "<string>", "description": "<string>" }
Creates a new store. Optionally associate it with an organization via organizationId.
1
Default Response
Was this page helpful?