Organizations
Using these endpoints you can create, delete and update organizations!
Create Organization
PUT
https://identity.vulos.io/api/v1/organization/create
Create a new organization.
Request Body
{ organizationId: 1, membershipId: "<guid>", userId: "<guid>" }
{
"error": "Something went wrong",
"code": "<errror code>",
"request": "<request id>"
}
Organization List
GET
https://identity.vulos.io/api/v1/organization/list
Get all organizations for the authenticated user.
[
{ organizationId: 1, membershipId: "<guid>", userId: "<guid>" },
{ organizationId: 2, membershipId: "<guid>", userId: "<guid>" },
]
{
"error": "Something went wrong",
"code": "<errror code>",
"request": "<request id>"
}
Organization Info
GET
https://identity.vulos.io/api/v1/organization/:id
Get information about a specific organization.
Path Parameters
{
"memberships": [
{ organizationId: 2, membershipId: "<guid>", userId: "<guid>" },
{ organizationId: 2, membershipId: "<guid>", userId: "<guid>" },
],
"id": 2,
"name": "Example Organization",
"website": "https://example.com",
"address": "Example Address",
"uniqueId": "<organization unique id>",
"taxNumber": "<organization tax number>",
"city": "Example City",
"country": {
"alpha2": "AQ",
"name": "Antartica"
},
"zipCode": "<organization zip code>",
"state": "<optional state>",
"verified": false
}
{
"error": "Something went wrong",
"code": "<errror code>",
"request": "<request id>"
}
Update Organization
PUT
https://identity.vulos.io/api/v1/organization/:id/update
Update a specific organization's details.
Path Parameters
Request Body
{
"success": true,
"message": "A message describing the successful response"
}
{
"error": "Something went wrong",
"code": "<errror code>",
"request": "<request id>"
}
Delete Organization
DELETE
https://identity.vulos.io/api/v1/organization/:id/delete
Delete an organization.
Path Parameters
{
"success": true,
"message": "A message describing the successful response"
}
{
"error": "Something went wrong",
"code": "<errror code>",
"request": "<request id>"
}