user_idIf the user is not the owner, the request must be rejected.
POSTapplication/x-www-form-urlencoded| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | String | Yes | User requesting the rename. Must be the owner of the floor. |
from | String | Yes | Existing floor ID (current identifier to be renamed). |
to | String | Yes | New floor ID to assign to the floor. |
app_id | String | No | Identifier of the calling application (used mainly for pod/developer contexts). |
from floor ID must existto floor ID must be unique and not already in usefid remain unchanged| Scenario | Result |
|---|---|
| Valid owner + unique new ID | Floor ID renamed successfully |
| Non-owner user | Request rejected |
from floor ID not found | Error |
to floor ID already exists | Error |
from == to | No-op or validation error (implementation choice) |
application/json{
"status": "SUCCESS",
"old_floor_id": "oldfloorid",
"new_floor_id": "newfloorid",
"message": "Floor ID renamed successfully"
}{
"status": "ERROR",
"message": "Only the floor owner can rename the floor"
}{
"status": "ERROR",
"message": "Source floor ID does not exist"
}{
"status": "ERROR",
"message": "Target floor ID is already in use"
}{
"status": "ERROR",
"message": "user_id, from, and to are required"
}fid) is not affected.This API answers: “Change the public identity (ID) of a floor, owner-only.”
curl --location --request POST 'https://appfloor.in/api/memory/change/floor/id?user_id&app_id&from&to' \
--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"
}