=encoding utf8

=head1 NAME

OpenAPI::Client::OpenAI::Path::fine_tuning-checkpoints-permission_id-permissions - Documentation for the /fine_tuning/checkpoints/{permission_id}/permissions path.

=head1 DESCRIPTION

This document describes the API endpoint at C</fine_tuning/checkpoints/{permission_id}/permissions>.

See the C<examples/> directory in the distribution for examples of how to use this.

=head2 C<DELETE /fine_tuning/checkpoints/{permission_id}/permissions>

**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).

Organization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.


=head3 Operation ID

C<deleteFineTuningCheckpointPermission>

    $client->deleteFineTuningCheckpointPermission( ... );

=head3 Parameters

=over 4

=item * C<permission_id> (in path) (Required) - The ID of the fine-tuned model checkpoint permission to delete.

Type: C<string>


=back


=head3 Responses

=head3 Status Code: C<200>

OK

Content Types:

=over 4

=item * C<application/json>

=back

=head2 C<GET /fine_tuning/checkpoints/{permission_id}/permissions>

**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).

Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.


=head3 Operation ID

C<listFineTuningCheckpointPermissions>

    $client->listFineTuningCheckpointPermissions( ... );

=head3 Parameters

=over 4

=item * C<permission_id> (in path) (Required) - The ID of the fine-tuned model checkpoint to get permissions for.

Type: C<string>

=item * C<project_id> (in query) (Optional) - The ID of the project to get permissions for.
Type: C<string>

=item * C<after> (in query) (Optional) - Identifier for the last permission ID from the previous pagination request.
Type: C<string>

=item * C<limit> (in query) (Optional) - Number of permissions to retrieve.
Type: C<integer>

Default: C<10>

=item * C<order> (in query) (Optional) - The order in which to retrieve permissions.
Type: C<string>

Possible values: C<ascending descending>

Default: C<descending>


=back


=head3 Responses

=head3 Status Code: C<200>

OK

Content Types:

=over 4

=item * C<application/json>

Example:

    {
       "data" : [
          null
       ]
    }



=back

=head2 C<POST /fine_tuning/checkpoints/{permission_id}/permissions>

**NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).

This enables organization owners to share fine-tuned models with other projects in their organization.


=head3 Operation ID

C<createFineTuningCheckpointPermission>

    $client->createFineTuningCheckpointPermission( ... );

=head3 Parameters

=over 4

=item * C<permission_id> (in path) (Required) - The ID of the fine-tuned model checkpoint to create a permission for.

Type: C<string>


=back


=head3 Request Body

=head3 Content Type: C<application/json>


=head3 Example:

    {
       "project_ids" : [
          null
       ]
    }



=head3 Responses

=head3 Status Code: C<200>

OK

Content Types:

=over 4

=item * C<application/json>

Example:

    {
       "data" : [
          null
       ]
    }



=back


=head1 SEE ALSO

L<OpenAPI::Client::OpenAI::Path>

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2023-2025 by Nelson Ferraz

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.14.0 or,
at your option, any later version of Perl 5 you may have available.

=cut
