POSTapplication/x-www-form-urlencoded (or multipart/form-data if your system uses form-data)| Field | Type | Required | Description |
|---|---|---|---|
user_id | String | Yes | User requesting the change. Must be the owner of the floor. |
floor_id | String | Yes | Public identifier of the floor to update. |
app_id | String | No | Calling application identifier (used for developer/pod integration). |
user_id"already private", orapplication/json{
"status": "SUCCESS",
"floor_id": "my_floor",
"visibility": "PRIVATE",
"message": "Floor is now private"
}{
"status": "SUCCESS",
"floor_id": "my_floor",
"visibility": "PRIVATE",
"message": "Floor is already private"
}{
"status": "ERROR",
"message": "Only the floor owner can change floor visibility"
}{
"status": "ERROR",
"message": "Floor not found"
}{
"status": "ERROR",
"message": "user_id and floor_id are required"
}app_id is provided for developer/pod applications and is optional unless enforced by your app model.POD, document whether pods are allowed to be private or not (some platforms restrict this).curl --location --request POST 'https://appfloor.in/api/memory/make/floor/private/?user_id&app_id' \
--header 'Authorization: Bearer <token>'{
"floor_id": "string",
"title": "string",
"details": "string",
"floor_uid": "string",
"blocks": [
{
"block_id": "string",
"type": "string",
"title": "string"
}
],
"avatar": {
"url": "string",
"type": "string"
},
"is_owner": "string",
"floor_type": "string",
"app_id": "string"
}