For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/account-profile/llms.txt. For full documentation content, see https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/account-profile/llms-full.txt.

# Abilities and Talents Copy

PATCH http://localhost:8000/api/egg-donors/{id}/abilities-talents
Content-Type: application/json

Reference: https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/account-profile/abilities-and-talents-copy

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/egg-donors/{id}/abilities-talents:
    patch:
      operationId: abilities-and-talents-copy
      summary: Abilities and Talents Copy
      tags:
        - subpackage_spermDonor.subpackage_spermDonor/accountProfile
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Sperm Donor_Account Profile_Abilities and
                  Talents Copy_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                abilities_and_talents:
                  $ref: >-
                    #/components/schemas/ApiEggDonorsIdAbilitiesTalentsPatchRequestBodyContentApplicationJsonSchemaAbilitiesAndTalents
              required:
                - abilities_and_talents
servers:
  - url: http://localhost:8000
components:
  schemas:
    ApiEggDonorsIdAbilitiesTalentsPatchRequestBodyContentApplicationJsonSchemaAbilitiesAndTalents:
      type: object
      properties:
        math:
          type: integer
        science:
          type: integer
        english:
          type: integer
        history:
          type: integer
        computers:
          type: integer
        art:
          type: integer
        music:
          type: integer
        athletic:
          type: integer
        fav_subject:
          type: string
      required:
        - math
        - science
        - english
        - history
        - computers
        - art
        - music
        - athletic
        - fav_subject
      title: >-
        ApiEggDonorsIdAbilitiesTalentsPatchRequestBodyContentApplicationJsonSchemaAbilitiesAndTalents
    Sperm Donor_Account Profile_Abilities and Talents Copy_Response_200:
      type: object
      properties:
        status:
          type: integer
        message:
          type: string
      required:
        - status
        - message
      title: Sperm Donor_Account Profile_Abilities and Talents Copy_Response_200
  securitySchemes:
    oauth2Auth:
      type: http
      scheme: bearer

```

## SDK Code Examples

```python Sperm Donor_Account Profile_Abilities and Talents Copy_example
import requests

url = "http://localhost:8000/api/egg-donors/21/abilities-talents"

payload = { "abilities_and_talents": {
        "math": 4,
        "science": 5,
        "english": 3,
        "history": 4,
        "computers": 5,
        "art": 2,
        "music": 3,
        "athletic": 4,
        "fav_subject": "Science"
    } }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Sperm Donor_Account Profile_Abilities and Talents Copy_example
const url = 'http://localhost:8000/api/egg-donors/21/abilities-talents';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"abilities_and_talents":{"math":4,"science":5,"english":3,"history":4,"computers":5,"art":2,"music":3,"athletic":4,"fav_subject":"Science"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Sperm Donor_Account Profile_Abilities and Talents Copy_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:8000/api/egg-donors/21/abilities-talents"

	payload := strings.NewReader("{\n  \"abilities_and_talents\": {\n    \"math\": 4,\n    \"science\": 5,\n    \"english\": 3,\n    \"history\": 4,\n    \"computers\": 5,\n    \"art\": 2,\n    \"music\": 3,\n    \"athletic\": 4,\n    \"fav_subject\": \"Science\"\n  }\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Sperm Donor_Account Profile_Abilities and Talents Copy_example
require 'uri'
require 'net/http'

url = URI("http://localhost:8000/api/egg-donors/21/abilities-talents")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"abilities_and_talents\": {\n    \"math\": 4,\n    \"science\": 5,\n    \"english\": 3,\n    \"history\": 4,\n    \"computers\": 5,\n    \"art\": 2,\n    \"music\": 3,\n    \"athletic\": 4,\n    \"fav_subject\": \"Science\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Sperm Donor_Account Profile_Abilities and Talents Copy_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("http://localhost:8000/api/egg-donors/21/abilities-talents")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"abilities_and_talents\": {\n    \"math\": 4,\n    \"science\": 5,\n    \"english\": 3,\n    \"history\": 4,\n    \"computers\": 5,\n    \"art\": 2,\n    \"music\": 3,\n    \"athletic\": 4,\n    \"fav_subject\": \"Science\"\n  }\n}")
  .asString();
```

```php Sperm Donor_Account Profile_Abilities and Talents Copy_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'http://localhost:8000/api/egg-donors/21/abilities-talents', [
  'body' => '{
  "abilities_and_talents": {
    "math": 4,
    "science": 5,
    "english": 3,
    "history": 4,
    "computers": 5,
    "art": 2,
    "music": 3,
    "athletic": 4,
    "fav_subject": "Science"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Sperm Donor_Account Profile_Abilities and Talents Copy_example
using RestSharp;

var client = new RestClient("http://localhost:8000/api/egg-donors/21/abilities-talents");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"abilities_and_talents\": {\n    \"math\": 4,\n    \"science\": 5,\n    \"english\": 3,\n    \"history\": 4,\n    \"computers\": 5,\n    \"art\": 2,\n    \"music\": 3,\n    \"athletic\": 4,\n    \"fav_subject\": \"Science\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Sperm Donor_Account Profile_Abilities and Talents Copy_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["abilities_and_talents": [
    "math": 4,
    "science": 5,
    "english": 3,
    "history": 4,
    "computers": 5,
    "art": 2,
    "music": 3,
    "athletic": 4,
    "fav_subject": "Science"
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/api/egg-donors/21/abilities-talents")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```