> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.insurgateway.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.insurgateway.com/_mcp/server.

# AssignToMe

PUT https://testgatewayapi.insurapps.net/api/offline/jobs/{jobId}/assigntome

## AssignToMe

Mevcut bir offline işi (job) oturum açmış olan kullanıcıya atar ("beni ata"). Bu endpoint, belirtilen işin sahipliğini çağrıyı yapan kullanıcıya devreder; herhangi bir request body gerektirmez.

---

## Path Parametreleri

| Parametre | Tip | Zorunlu | Açıklama |
| --- | --- | --- | --- |
| `jobId` | integer | ✅ Evet | Atanacak işin benzersiz tanımlayıcısı. Örnek: `211206` |

---

## Request Body

Bu endpoint herhangi bir request body kabul etmez.

---

## Yanıt / Hata Senaryoları

| Senaryo | Açıklama |
| --- | --- |
| **Success** | İş başarıyla oturum açmış kullanıcıya atandı. |
| **Validation Error** | İstek geçersiz veya eksik parametre içeriyor. `jobId` formatı hatalı olabilir. |
| **JobNotFound Error** | Belirtilen `jobId` ile eşleşen bir iş bulunamadı. |
| **JobAlreadyOwned Error** | İş zaten oturum açmış kullanıcıya atanmış durumda; tekrar atama yapılamaz. |
| **JobOwnedByAnotherUser Error** | İş başka bir kullanıcıya atanmış olduğundan bu kullanıcıya atanamaz. |
| **InsuranceCompanyMappingMissing Error** | İşle ilişkili sigorta şirketi eşleşmesi (mapping) bulunamadı; atama tamamlanamadı. |

Reference: https://docs.insurgateway.com/insurgateway-api/offline/assign-to-me

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://testgatewayapi.insurapps.net` (https://testgatewayapi.insurapps.net, default)
- `https://gatewayapi.insurapps.net` (https://gatewayapi.insurapps.net)

## Request

### Path parameters

- `jobId` (integer, required)

## Response

### 204

No Content

## Errors

### 400 Bad Request Error

Bad Request

### 403 Forbidden Error

Forbidden

### 404 Not Found Error

Not Found

### 409 Conflict Error

Conflict

## Examples

**Response**

```json
"string"
```

**SDK Code**

```python
import requests

url = "https://testgatewayapi.insurapps.net/api/offline/jobs/211206/assigntome"

headers = {"Authorization": "Bearer <token>"}

response = requests.put(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://testgatewayapi.insurapps.net/api/offline/jobs/211206/assigntome';
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};

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

```go
package main

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

func main() {

	url := "https://testgatewayapi.insurapps.net/api/offline/jobs/211206/assigntome"

	req, _ := http.NewRequest("PUT", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://testgatewayapi.insurapps.net/api/offline/jobs/211206/assigntome")

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

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://testgatewayapi.insurapps.net/api/offline/jobs/211206/assigntome")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://testgatewayapi.insurapps.net/api/offline/jobs/211206/assigntome', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://testgatewayapi.insurapps.net/api/offline/jobs/211206/assigntome");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://testgatewayapi.insurapps.net/api/offline/jobs/211206/assigntome")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers

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()
```