---
updatedAt: 2026-04-24T16:40:21.000Z
agentTools:
  projectIndex: https://developers.cloudbeds.com/llms.txt
---

# Add note to a profile

Create a new note for a profile (group, company, or travel agent)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Group Profile API",
    "version": "1.0.0",
    "description": "API for managing group profiles, contact persons, and related operations"
  },
  "tags": [
    {
      "name": "ProfileNote",
      "description": "Profile Note API"
    }
  ],
  "servers": [
    {
      "url": "https://api.cloudbeds.com"
    }
  ],
  "paths": {
    "/group-profile/v1/profiles/{profileId}/notes": {
      "post": {
        "summary": "Add note to a profile",
        "description": "Create a new note for a profile (group, company, or travel agent)",
        "operationId": "addProfileNote",
        "tags": [
          "ProfileNote"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/profileId"
          },
          {
            "$ref": "#/components/parameters/xPropertyId"
          },
          {
            "$ref": "#/components/parameters/xOrganizationId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProfileNoteRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Note added successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileNoteResponse"
                },
                "example": {
                  "id": "98765432109876543",
                  "profileId": "19074818619469856",
                  "userId": "12345",
                  "content": "Customer requested late checkout due to flight delay",
                  "createdAt": "2024-01-20T09:15:00Z",
                  "updatedAt": "2024-01-20T09:15:00Z"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Profile not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "parameters": {
      "profileId": {
        "name": "profileId",
        "in": "path",
        "description": "Entity ID",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int64"
        }
      },
      "xPropertyId": {
        "name": "x-property-id",
        "in": "header",
        "description": "Property ID",
        "required": false,
        "schema": {
          "type": "integer",
          "format": "int64"
        }
      },
      "xOrganizationId": {
        "name": "x-organization-id",
        "in": "header",
        "description": "Organization ID",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "schemas": {
      "ProfileNoteBase": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64",
            "description": "User ID of the person who created the note",
            "example": 12345
          },
          "content": {
            "type": "string",
            "description": "Content of the note",
            "example": "Customer requested late checkout due to flight delay"
          }
        }
      },
      "NoteUser": {
        "type": "object",
        "description": "User information for note author",
        "properties": {
          "id": {
            "type": "string",
            "description": "User ID",
            "example": "12345"
          },
          "firstName": {
            "type": "string",
            "description": "First name of the user",
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Last name of the user",
            "example": "Doe"
          },
          "email": {
            "type": "string",
            "description": "Email of the user",
            "example": "john.doe@example.com"
          }
        }
      },
      "ProfileNoteResponse": {
        "type": "object",
        "required": [
          "id",
          "profileId"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the profile note",
            "example": "12345"
          },
          "profileId": {
            "type": "string",
            "description": "ID of the profile (group, company, or travel agent)",
            "example": "67890"
          },
          "user": {
            "$ref": "#/components/schemas/NoteUser"
          },
          "content": {
            "type": "string",
            "description": "Content of the note",
            "example": "Customer requested late checkout due to flight delay"
          },
          "archivedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the note was archived (null if not archived)"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Creation timestamp"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last update timestamp"
          }
        }
      },
      "CreateProfileNoteRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ProfileNoteBase"
          },
          {
            "type": "object",
            "required": [
              "userId",
              "content"
            ]
          }
        ]
      },
      "ApiError": {
        "type": "object",
        "description": "Standard error response for 4xx and 5xx errors (except validation errors).\n\n## Error Codes\n\n### Validation Errors (400)\n- `INVALID_REQUEST` - The request body is invalid or malformed\n- `INVALID_PARAMETER` - One or more request parameters are invalid\n- `INVALID_ENUM_VALUE` - Invalid enum value provided\n- `INVALID_JSON` - The request body contains malformed JSON\n\n### Resource Errors (404)\n- `RESOURCE_NOT_FOUND` - The requested resource was not found\n- `PROFILE_NOT_FOUND` - Profile not found\n- `NOTE_NOT_FOUND` - Note not found\n- `TAG_NOT_FOUND` - Tag not found\n\n### Conflict Errors (409)\n- `RESOURCE_ALREADY_EXISTS` - The resource already exists\n- `DUPLICATE_PROFILE_CODE` - A profile with this code already exists\n- `DUPLICATE_RELATIONSHIP` - This relationship already exists\n\n### Authorization Errors (403)\n- `ACCESS_DENIED` - Access denied to the requested resource\n- `ORGANIZATION_MISMATCH` - Resource belongs to a different organization\n\n### Server Errors (500)\n- `INTERNAL_ERROR` - An unexpected error occurred\n- `DATABASE_ERROR` - A database error occurred\n",
        "properties": {
          "message": {
            "type": "string",
            "description": "Human-readable error message explaining what went wrong",
            "example": "A profile with this code already exists. Please use a unique code."
          },
          "code": {
            "type": "string",
            "description": "Machine-readable error code for programmatic error handling",
            "example": "DUPLICATE_PROFILE_CODE"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "ISO 8601 timestamp when the error occurred",
            "example": "2024-01-15T10:30:45.123Z"
          }
        }
      },
      "ValidationError": {
        "type": "object",
        "description": "Validation error response returned for 422 Unprocessable Entity.\nContains field-level validation errors with specific details about what failed.\n\n## Error Code\n- `VALIDATION_ERROR` - One or more fields failed validation\n",
        "properties": {
          "message": {
            "type": "string",
            "description": "Overall validation error message",
            "example": "One or more fields failed validation"
          },
          "code": {
            "type": "string",
            "description": "Error code (always \"VALIDATION_ERROR\" for validation failures)",
            "example": "VALIDATION_ERROR"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "ISO 8601 timestamp when the error occurred",
            "example": "2024-01-15T10:30:45.123Z"
          },
          "fieldErrors": {
            "type": "array",
            "description": "List of field-specific validation errors",
            "items": {
              "$ref": "#/components/schemas/FieldError"
            }
          }
        }
      },
      "FieldError": {
        "type": "object",
        "description": "Field-level validation error details",
        "properties": {
          "field": {
            "type": "string",
            "description": "Name of the field that failed validation (supports nested fields with dot notation)",
            "example": "attributes.companyProfile.website"
          },
          "message": {
            "type": "string",
            "description": "Human-readable message explaining why validation failed for this field",
            "example": "Invalid value 'INVALID_TYPE'. Allowed values are: [COMPANY, GROUP, TRAVEL_AGENT]"
          }
        },
        "example": {
          "field": "email",
          "message": "must be a well-formed email address (provided: 'invalid-email')"
        }
      }
    }
  }
}
```