post https://api.accelevents.com/rest/host/event//speaker
Using this API, you can create a new speaker for a particular event.
You need to send SpeakerDTO
as a request body, which contains information like firstName
, lastName
, email
etc.
If a speaker with the same email already exists you will get the error 4068906
.
This API can be used by authenticated users only, and it will require super admin, event admin, and event staff level access.
Here is the description of response attributes, which returns to the form of JSON.
Attributes | Description |
---|---|
id | Unique speaker ID to identify speaker. |
Here is the possible error messages, which return if any condition gets failed or required data is missing for processing.
Error Code | Error Description |
---|---|
400 | The request could not be understood by the server due to malformed syntax. |
401 | You are not authorized to view the resource |
403 | Accessing the resource you were trying to reach is forbidden. |
404 | The resource you were trying to reach is not found. |
4030201 | Not Event Host |
4068906 | Speaker already exist with same email. |
406 | More than one user exist with same email |