Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
GITBOOK-1112: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Faria1212 authored and gitbook-bot committed Oct 11, 2023
1 parent 4653eb8 commit e2a66da
Showing 1 changed file with 41 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,51 @@ curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \

## Example Result

### Success

```javascript
{
"_id": "jEnjsxuoDJamGjbH2",
"ts": "1696533809813",
"message": {
"_id": "jEnjsxuoDJamGjbH2",
"rid": "6GFJ3tbmHiyHbahmC",
"u": {
"_id": "5fRTXMt7DMJbpPJfh",
"username": "test.funke",
"name": "TestFunke"
}
},
"success": true
}
```

### Errors

The following errors can occur upon the endpoint.

* **Authorization**: Requires an authentication token for the request to be made.
* **Room Id does not match**: Occurs when the room id provided does not match where the message is from

{% tabs %}
{% tab title=" Authorization" %}
```javascript
{
"_id": "7aDSXtjMA3KPLxLjt",
"ts": 1481741940895,
"success": true
"status": "error",
"message": "You must be logged in to do this."
}
```
{% endtab %}

{% tab title="Room Id does not match" %}
```
{
"success": false,
"error": "The room id provided does not match where the message is from."
}
```
{% endtab %}
{% endtabs %}

## Change Log

Expand Down

0 comments on commit e2a66da

Please sign in to comment.