---
title: "REST API: Create Event Resource"
type: "wiki"
space: "Axero Documentation"
author: "Anonymous User"
created: 2020-07-08T19:24:11Z
updated: 2026-09-28T01:09:34Z
tags: ["API"]
url: "https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/42872/rest-api-create-event-resource"
---

# REST API: Create Event Resource

[Open API Guide](https://my.axerosolutions.com/spaces/5/axero-documentation/api-guide?id=42872)
POST/api/events/resources

Create an event resource \(a room or item that events in the listed spaces can reserve\). On success, ResponseData holds the new resource, with its ResourceID. ResponseMessage holds the name of the returned object's type rather than a message.

## Request

### Request Header
| Header | Required | Value | Description |
| :--- | :--- | :--- | :--- |
| `Authorization` | YES | `Bearer YOUR_TOKEN` | Bearer token for the authenticated user. [Learn how to create Bearer tokens](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/108973/creating-bearer-tokens). |
| `Content-Type` | YES | `application/json` | Must be set to `application/json` |
### Required Parameters
| Parameter | Type | Required | Location | Description |
| :--- | :--- | :--- | :--- | :--- |
| `ResourceName` | String | YES | Body | Name of the event resource |
| `Location` | String | YES | Body | Location of the event resource. A JSON list instead of text fails the call \(200 with IsError true\). |
| `Description` | String | YES | Body | Description of the event resource. A JSON list instead of text fails the call \(200 with IsError true\). |
### Optional Parameters
| Parameter | Type | Required | Location | Description |
| :--- | :--- | :--- | :--- | :--- |
| `EventResourceTypeID` | Integer | NO | Body | Unique ID of the event resource type for the event resource |
| `SpaceIDCSV` | String | NO | Body | Comma-separated list of spaces that can use the event resource |
## Example

### Request Header

```
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
```

### Request URL

`https://your-site.com/api/events/resources`

### Request Body

```
{
  "ResourceName": "Conference Room A",
  "Location": "Office Building A",
  "Description": "Place for large meetings",
  "EventResourceTypeID": 1,
  "SpaceIDCSV": "205,206,207"
}
```

### Success Response

```
{
  "IsError": false,
  "ResponseMessage": "Communifire.Common.BusinessEntities.Events.EventResource",
  "ResponseData": {
    "ResourceID": 43,
    "ResourceName": "Conference Room A 0880",
    "Location": "Office Building A",
    "Description": "Place for large meetings",
    "EventResourceTypeID": 1,
    "CalendarURL": "/events/resources/43/calendar",
    "SpaceIDCSV": "205,206,207",
    "DateCreated": "2026-09-13T01:56:47.3281869Z",
    "TenantID": 1
  }
}
```

### Error Response

```
{"IsError": true, "ResponseMessage": "System.Data.SqlClient.SqlException (0x80131904): Procedure or function 'Dyve_Event_Resource_Save' expects parameter '@ResourceName', which was not supplied. ..."}
```

## Error Handling

| Status Code | Likely Cause | Next Action |
| :--- | :--- | :--- |
| 200 with IsError | A required parameter is missing or invalid. The endpoint answers 200 and reports the problem in ResponseMessage, with IsError true. | Read IsError on every response, not the status code; verify the request against the required parameters. |
| 401 Unauthorized | Missing or invalid Bearer token. | Check token validity. [Learn how to create Bearer tokens →](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/108973/creating-bearer-tokens) |
| 403 Forbidden | User does not have sufficient permissions. | Confirm the user has the required roles for this action. |
| 500 Server Error | Internal failure. | Retry later. |

## Rate Limits

While Axero does not enforce hard rate limits by default, we recommend the following best practices to ensure optimal performance:

- **Sustained Request Rate:** Do not exceed 5 API calls per second
- **Sequential Processing:** Wait for each request to complete before sending the next in automated workflows
- **Concurrent Connections:** If parallel processing is required, limit to 3 or fewer simultaneous requests
- **Response Timeout:** Ensure API responses complete within 15 seconds during testing

Axero may implement temporary rate restrictions if excessive API usage affects overall site performance. For high-volume integrations, contact Axero to discuss your requirements.
