> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Photo Not Approved

> The photo has not been approved for assignment

## Cause

The photo cannot be assigned to a resource because it has not been approved. Only photos with state 'approved' can be assigned to services, shops, or barber profiles.

## Fix

Wait for the photo to be reviewed and approved before attempting to assign it. You can check the photo's current state by retrieving the photo details. Photos must go through the review process and reach the 'approved' state before they can be assigned.

## Retry safety

Not retryable until the underlying state or request changes.

## Raised by

These operations can return this problem:

* [Create an appointment](/api-reference/appointments/create-an-appointment)
* [Assign a photo to barber portfolio](/api-reference/photos/assign-a-photo-to-barber-portfolio)
* [Assign barber profile photo](/api-reference/photos/assign-barber-profile-photo)
* [Assign my profile photo](/api-reference/customers/assign-my-profile-photo)
* [Assign a photo to a service](/api-reference/photos/assign-a-photo-to-a-service)
* [Assign a photo to shop portfolio](/api-reference/photos/assign-a-photo-to-shop-portfolio)
* [Assign shop profile photo](/api-reference/photos/assign-shop-profile-photo)

## Example

```json theme={null}
{
  "type": "https://docs.guile.app/problems/photoNotApproved",
  "title": "Photo Not Approved",
  "status": 422,
  "detail": "The photo cannot be assigned to a resource because it has not been approved. Only photos with state 'approved' can be..."
}
```
